summaryrefslogtreecommitdiff
path: root/src/qt3support/widgets
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-11-05 11:48:31 +0100
committerThierry Bastian <thierry.bastian@nokia.com>2009-11-05 11:49:55 +0100
commitb2c60696dd54656c1a0d588342cc3c7beee70876 (patch)
tree120f4367673ec70e4e3ac13f861d84d8ae54df64 /src/qt3support/widgets
parentff87ab95b42c87528c4dff16382a5894c6ddd4c3 (diff)
downloadqt4-tools-b2c60696dd54656c1a0d588342cc3c7beee70876.tar.gz
Fixed Q3DockArea::setAcceptDockWindow which didn't work at all
Task-number: QTBUG-2026 Reviewed-by: ogoffart
Diffstat (limited to 'src/qt3support/widgets')
-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 bb34622174..fbe235e816 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);
}