Mercurial > lcfOS
diff python/ide.py @ 277:046017431c6a
Started register allocator
author | Windel Bouwman |
---|---|
date | Thu, 26 Sep 2013 21:14:25 +0200 |
parents | ac603eb66b63 |
children | 2ccd57b1d78c |
line wrap: on
line diff
--- a/python/ide.py Mon Sep 16 21:51:17 2013 +0200 +++ b/python/ide.py Thu Sep 26 21:14:25 2013 +0200 @@ -52,9 +52,11 @@ for e in errorlist: item = QStandardItem(self.errorIcon, str(e.msg)) item.setData(e) - irow = QStandardItem(str(e.loc.row)) + row = str(e.loc.row) if e.loc else '' + irow = QStandardItem(row) irow.setData(e) - icol = QStandardItem(str(e.loc.col)) + col = str(e.loc.col) if e.loc else '' + icol = QStandardItem(col) icol.setData(e) self.model.appendRow([item, irow, icol]) @@ -223,7 +225,8 @@ self.restoreGeometry(self.settings.value('mainwindowgeometry')) if self.settings.contains('lastfiles'): lfs = self.settings.value('lastfiles') - self.to_open_files.extend(lfs) + if lfs: + self.to_open_files.extend(lfs) def showEvent(self, ev): super().showEvent(ev)