diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-12-01 14:54:40 +0100 |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-12-01 15:40:21 +0100 |
commit | 271936b063fb261293e3f77f7a2273e3a4dbb5d6 (patch) | |
tree | 77880bbd72d981fc3afac1bb9f94c6bb530bb9e2 /tools/designer | |
parent | b405b59dca7c3340ce424313c8e538dacbc2e824 (diff) | |
download | qt4-tools-271936b063fb261293e3f77f7a2273e3a4dbb5d6.tar.gz |
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.cpp | 1 |
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 23d8580a08..246c56f7ab 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; |