summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qlistwidget.cpp
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-12-14 18:55:43 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-12-14 18:55:43 (GMT)
commita068f6dd6115b2f950892e5228efe10b7de57a00 (patch)
treec55c44b2e1b452838a7443d85ca2463ca1ec15bd /src/gui/itemviews/qlistwidget.cpp
parentad4ca2152c161f7023e5febcf9e90c0652b8e57d (diff)
parentadba8e01f0069d240bf0b97175f54e38271acd19 (diff)
downloadQt-a068f6dd6115b2f950892e5228efe10b7de57a00.zip
Qt-a068f6dd6115b2f950892e5228efe10b7de57a00.tar.gz
Qt-a068f6dd6115b2f950892e5228efe10b7de57a00.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6
Diffstat (limited to 'src/gui/itemviews/qlistwidget.cpp')
-rw-r--r--src/gui/itemviews/qlistwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/itemviews/qlistwidget.cpp b/src/gui/itemviews/qlistwidget.cpp
index 5dd1d76..929d688 100644
--- a/src/gui/itemviews/qlistwidget.cpp
+++ b/src/gui/itemviews/qlistwidget.cpp
@@ -176,7 +176,8 @@ void QListModel::move(int srcRow, int dstRow)
|| dstRow < 0 || dstRow >= items.count())
return;
- beginMoveRows(QModelIndex(), srcRow, srcRow, QModelIndex(), dstRow);
+ if (!beginMoveRows(QModelIndex(), srcRow, srcRow, QModelIndex(), dstRow))
+ return;
if (srcRow < dstRow)
--dstRow;
items.move(srcRow, dstRow);