diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-10-26 11:52:30 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-10-26 11:56:40 (GMT) |
commit | c7e8c1844819bc9b078403f8cdbad9c104452a30 (patch) | |
tree | 2f828dec5ce18d80ef25968a39865d8e6de0a916 /src/gui/itemviews/qitemselectionmodel.cpp | |
parent | 319482a6b33ce1bd365457054aca49a51d885e07 (diff) | |
download | Qt-c7e8c1844819bc9b078403f8cdbad9c104452a30.zip Qt-c7e8c1844819bc9b078403f8cdbad9c104452a30.tar.gz Qt-c7e8c1844819bc9b078403f8cdbad9c104452a30.tar.bz2 |
Fixed typo
Would not have introduced any bug as invald QModelIndex are currently
initialised with -1 for row and column.
Reviewed-by: trust me
Diffstat (limited to 'src/gui/itemviews/qitemselectionmodel.cpp')
-rw-r--r-- | src/gui/itemviews/qitemselectionmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qitemselectionmodel.cpp b/src/gui/itemviews/qitemselectionmodel.cpp index dfebe03..f2ccb6e 100644 --- a/src/gui/itemviews/qitemselectionmodel.cpp +++ b/src/gui/itemviews/qitemselectionmodel.cpp @@ -599,7 +599,7 @@ void QItemSelectionModelPrivate::_q_rowsAboutToBeRemoved(const QModelIndex &pare while (itParent.isValid() && itParent.parent() != parent) itParent = itParent.parent(); - if (parent.isValid() && start <= itParent.row() && itParent.row() <= end) { + if (itParent.isValid() && start <= itParent.row() && itParent.row() <= end) { deselected.append(*it); it = ranges.erase(it); } else { |