summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qlistwidget.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-12-10 10:35:53 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-12-10 10:38:46 (GMT)
commita2ccf692cdc4113cc90ef12c27ba8c4aa552d81f (patch)
treede44f49f3f6ab166748155c0c04eac7c41afcd54 /src/gui/itemviews/qlistwidget.cpp
parentbb0ab1d8cf57dd4a7b69c8478c2a40c1cd1782e9 (diff)
downloadQt-a2ccf692cdc4113cc90ef12c27ba8c4aa552d81f.zip
Qt-a2ccf692cdc4113cc90ef12c27ba8c4aa552d81f.tar.gz
Qt-a2ccf692cdc4113cc90ef12c27ba8c4aa552d81f.tar.bz2
Fixes internal drag and drop in QListWidget while dropping to the end
Task-number: QTBUG-6565 Reviewed-by: Gabriel
Diffstat (limited to 'src/gui/itemviews/qlistwidget.cpp')
-rw-r--r--src/gui/itemviews/qlistwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qlistwidget.cpp b/src/gui/itemviews/qlistwidget.cpp
index 929d688..0ce0e5e 100644
--- a/src/gui/itemviews/qlistwidget.cpp
+++ b/src/gui/itemviews/qlistwidget.cpp
@@ -173,7 +173,7 @@ void QListModel::move(int srcRow, int dstRow)
{
if (srcRow == dstRow
|| srcRow < 0 || srcRow >= items.count()
- || dstRow < 0 || dstRow >= items.count())
+ || dstRow < 0 || dstRow > items.count())
return;
if (!beginMoveRows(QModelIndex(), srcRow, srcRow, QModelIndex(), dstRow))