summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-11-20 10:51:55 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-11-20 10:58:52 (GMT)
commita222302ca45e33306dacae0aa16a572c13abc483 (patch)
treec842699f60b476a4225dfa04a64bda743669f654 /src/gui/kernel
parent389254874251f91038dff0a0d497a6fd9af09939 (diff)
downloadQt-a222302ca45e33306dacae0aa16a572c13abc483.zip
Qt-a222302ca45e33306dacae0aa16a572c13abc483.tar.gz
Qt-a222302ca45e33306dacae0aa16a572c13abc483.tar.bz2
Incorrect DropAction returned by QDrag::exec() on Cocoa.
The action performed by the latest drag and drop operation is stored in the global DnDParams structure. The QDrag::exec() return value has to be fetcted from this global variable instead of the temporary copy on stack. Commit 0d231c32cc7670d356d486b13648cb5bd471ffef broke this. Task-number: QTBUG-6001 Reviewed-by: Denis
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qcocoaview_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qcocoaview_mac.mm b/src/gui/kernel/qcocoaview_mac.mm
index a16d1f8..72eedad 100644
--- a/src/gui/kernel/qcocoaview_mac.mm
+++ b/src/gui/kernel/qcocoaview_mac.mm
@@ -1451,7 +1451,7 @@ Qt::DropAction QDragManager::drag(QDrag *o)
[image release];
dragPrivate()->executed_action = Qt::IgnoreAction;
object = 0;
- Qt::DropAction performedAction(qt_mac_mapNSDragOperation(dndParams.performedAction));
+ Qt::DropAction performedAction(qt_mac_mapNSDragOperation(qMacDnDParams()->performedAction));
// do post drag processing, if required.
if(performedAction != Qt::IgnoreAction) {
// check if the receiver points us to a file location.