Skip to content

Commit

Permalink
Merge pull request #1 from The-Compiler/model-check-fix
Browse files Browse the repository at this point in the history
Reintroduce and fix index model check.
  • Loading branch information
bgr committed Jun 24, 2015
2 parents 1b3adf0 + 2554c51 commit f05c4cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modeltest.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,7 @@ def checkChildren(self, parent, depth = 0):
assert( a == b )

# Some basic checking on the index that is returned
# assert( index.model() == self.model )
# This raises an error that is not part of the qbzr code.
# see https://www.opensubscriber.com/message/[email protected]/10335500.html
assert( index.model() == self._model )
assert( index.row() == r )
assert( index.column() == c )
# While you can technically return a QtCore.QVariant usually this is a sign
Expand Down

0 comments on commit f05c4cf

Please sign in to comment.