summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-07-07 09:49:59 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-07-07 09:52:15 (GMT)
commit53b116be1bbadd416449d9a0104f514139f495c8 (patch)
tree6baf735361c657b82283734807875dc1aefd55f8 /src
parentea80c1682ec2bb3bc876d63518e3e6ce794df913 (diff)
downloadQt-53b116be1bbadd416449d9a0104f514139f495c8.zip
Qt-53b116be1bbadd416449d9a0104f514139f495c8.tar.gz
Qt-53b116be1bbadd416449d9a0104f514139f495c8.tar.bz2
ItemViews: it would go into DraggingState even without clicking an item
We now just make sure that we start the drag if there was a pressed index. Task-number: 252643
Diffstat (limited to 'src')
-rw-r--r--src/gui/itemviews/qabstractitemview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp
index b64bc71..cefe8a5 100644
--- a/src/gui/itemviews/qabstractitemview.cpp
+++ b/src/gui/itemviews/qabstractitemview.cpp
@@ -1602,7 +1602,7 @@ void QAbstractItemView::mouseMoveEvent(QMouseEvent *event)
d->checkMouseMove(index);
#ifndef QT_NO_DRAGANDDROP
- if (index.isValid()
+ if (d->pressedIndex.isValid()
&& d->dragEnabled
&& (state() != DragSelectingState)
&& (event->buttons() != Qt::NoButton)