summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qitemselectionmodel.cpp
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-10-26 11:52:30 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-10-26 11:56:40 (GMT)
commitc7e8c1844819bc9b078403f8cdbad9c104452a30 (patch)
tree2f828dec5ce18d80ef25968a39865d8e6de0a916 /src/gui/itemviews/qitemselectionmodel.cpp
parent319482a6b33ce1bd365457054aca49a51d885e07 (diff)
downloadQt-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.cpp2
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 {