summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-11-05 10:48:31 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-11-05 10:49:55 (GMT)
commitb2c60696dd54656c1a0d588342cc3c7beee70876 (patch)
tree120f4367673ec70e4e3ac13f861d84d8ae54df64
parentff87ab95b42c87528c4dff16382a5894c6ddd4c3 (diff)
downloadQt-b2c60696dd54656c1a0d588342cc3c7beee70876.zip
Qt-b2c60696dd54656c1a0d588342cc3c7beee70876.tar.gz
Qt-b2c60696dd54656c1a0d588342cc3c7beee70876.tar.bz2
Fixed Q3DockArea::setAcceptDockWindow which didn't work at all
Task-number: QTBUG-2026 Reviewed-by: ogoffart
-rw-r--r--src/qt3support/widgets/q3dockarea.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt3support/widgets/q3dockarea.cpp b/src/qt3support/widgets/q3dockarea.cpp
index bb34622..fbe235e 100644
--- a/src/qt3support/widgets/q3dockarea.cpp
+++ b/src/qt3support/widgets/q3dockarea.cpp
@@ -1139,7 +1139,7 @@ void Q3DockArea::setAcceptDockWindow(Q3DockWindow *dw, bool accept)
{
if (accept)
forbiddenWidgets.removeAll(dw);
- else if (forbiddenWidgets.contains(dw))
+ else if (!forbiddenWidgets.contains(dw))
forbiddenWidgets.append(dw);
}