diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-04-27 14:44:49 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-04-27 14:48:33 (GMT) |
commit | 3f8a97d5ced09f4cc8893772f8e1291a2830a22c (patch) | |
tree | 655cdc1bade99cedcc5e1c5ead2fb020bc0d14bb /src/gui/kernel/qcocoaview_mac.mm | |
parent | 4c6963fe61f2d7751428669f40bc10d683b4336b (diff) | |
download | Qt-3f8a97d5ced09f4cc8893772f8e1291a2830a22c.zip Qt-3f8a97d5ced09f4cc8893772f8e1291a2830a22c.tar.gz Qt-3f8a97d5ced09f4cc8893772f8e1291a2830a22c.tar.bz2 |
Crash while dragging on Mac OS X (Cocoa)
This happens only if a new drag is started while a drag operation is
going on. It seems to be an unsupported operation on Mac.
Reviewed-by: Fabien Freling
Diffstat (limited to 'src/gui/kernel/qcocoaview_mac.mm')
-rw-r--r-- | src/gui/kernel/qcocoaview_mac.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qcocoaview_mac.mm b/src/gui/kernel/qcocoaview_mac.mm index dd12f65..4953c48 100644 --- a/src/gui/kernel/qcocoaview_mac.mm +++ b/src/gui/kernel/qcocoaview_mac.mm @@ -1554,7 +1554,8 @@ Qt::DropAction QDragManager::drag(QDrag *o) qt_button_down = 0; [dndParams.view release]; [image release]; - dragPrivate()->executed_action = Qt::IgnoreAction; + if (dragPrivate()) + dragPrivate()->executed_action = Qt::IgnoreAction; object = 0; Qt::DropAction performedAction(qt_mac_mapNSDragOperation(qMacDnDParams()->performedAction)); // do post drag processing, if required. |