summaryrefslogtreecommitdiffstats
path: root/tools/designer
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-12-01 13:54:40 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-12-01 14:40:21 (GMT)
commit271936b063fb261293e3f77f7a2273e3a4dbb5d6 (patch)
tree77880bbd72d981fc3afac1bb9f94c6bb530bb9e2 /tools/designer
parentb405b59dca7c3340ce424313c8e538dacbc2e824 (diff)
downloadQt-271936b063fb261293e3f77f7a2273e3a4dbb5d6.zip
Qt-271936b063fb261293e3f77f7a2273e3a4dbb5d6.tar.gz
Qt-271936b063fb261293e3f77f7a2273e3a4dbb5d6.tar.bz2
Creator crashes when reloading externally modified .ui files on Mac
On Mac QWidget::destroy() sends an AcceptDropsChange event after clearing the guards for QPointer. This was used to store a QPointer to the widget being deleted & that will never be cleared. The fix removed the setAcceptDrops() from destroy. And as an extra protection make sure designer will not treat that event as interesting. Task-number: QTCREATORBUG-307 Reviewed-by: Denis Dzyubenko Reviewed-by: Friedemann Kleint
Diffstat (limited to 'tools/designer')
-rw-r--r--tools/designer/src/components/formeditor/formwindowmanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/designer/src/components/formeditor/formwindowmanager.cpp b/tools/designer/src/components/formeditor/formwindowmanager.cpp
index 23d8580..246c56f 100644
--- a/tools/designer/src/components/formeditor/formwindowmanager.cpp
+++ b/tools/designer/src/components/formeditor/formwindowmanager.cpp
@@ -196,6 +196,7 @@ bool FormWindowManager::eventFilter(QObject *o, QEvent *e)
case QEvent::HoverEnter:
case QEvent::HoverLeave:
case QEvent::HoverMove:
+ case QEvent::AcceptDropsChange:
return false;
default:
break;