Changeset 4a6cc367186c…
Parent 48298f8c38f2…
by
Changes to one file · Browse files at 4a6cc367186c Showing diff from parent 48298f8c38f2 Diff from another changeset...
@@ -120,9 +120,9 @@
class WctxModel(QAbstractTableModel):
- def __init__(self, wctx):
- QAbstractTableModel.__init__(self)
- data = []
+ def __init__(self, wctx, parent=None):
+ QAbstractTableModel.__init__(self, parent)
+ rows = []
for m in wctx.modified():
rows.append(('M', m))
for a in wctx.added():
@@ -161,8 +161,6 @@ def headerData(self, col, orientation, role):
if role != Qt.DisplayRole or orientation != Qt.Horizontal:
return QVariant()
- elif col >= len(self.headers):
- return QVariant()
else:
return QVariant(self.headers[col])
|
Loading...