summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-11-12 13:32:52 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-11-12 13:32:52 (GMT)
commit65f38e884f40f02be6497819c876013750cce4ea (patch)
tree683baa0abb41acde1fc0888b947acf0ee538fbb9 /src/gui/widgets
parent4f2dcef95299f2da628b30607021e8deb1d868b6 (diff)
downloadQt-65f38e884f40f02be6497819c876013750cce4ea.zip
Qt-65f38e884f40f02be6497819c876013750cce4ea.tar.gz
Qt-65f38e884f40f02be6497819c876013750cce4ea.tar.bz2
Fixa regression that could make a dockwidget disappear if unfloatable
Task-number: QTBUG-5740 Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qmainwindowlayout.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/qmainwindowlayout.cpp b/src/gui/widgets/qmainwindowlayout.cpp
index 027a5d6..fa6f7a1 100644
--- a/src/gui/widgets/qmainwindowlayout.cpp
+++ b/src/gui/widgets/qmainwindowlayout.cpp
@@ -1641,6 +1641,9 @@ void QMainWindowLayout::animationFinished(QWidget *widget)
savedState.clear();
currentGapPos.clear();
pluggingWidget = 0;
+ //applying the state will make sure that the currentGap is updated correctly
+ //and all the geometries (especially the one from the central widget) is correct
+ layoutState.apply(false);
}
if (!widgetAnimator.animating()) {