summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2009-08-11 16:28:22 +0200
committercon <qtc-committer@nokia.com>2009-08-11 16:38:53 +0200
commitdf31a8742efe370cc0defd1acd827141e82f84cd (patch)
tree1683aa0fa083a5dcfbced0dce9475d499cf73226 /src
parent1e06df7d40f8b1462490636b6a9cb98a10517cad (diff)
downloadqt-creator-df31a8742efe370cc0defd1acd827141e82f84cd.tar.gz
Fix resetting to default layout in case of floating widgets.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/debugger/debuggermanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/debugger/debuggermanager.cpp b/src/plugins/debugger/debuggermanager.cpp
index 3bf92c362f..9e2d10c4d7 100644
--- a/src/plugins/debugger/debuggermanager.cpp
+++ b/src/plugins/debugger/debuggermanager.cpp
@@ -510,8 +510,10 @@ void DebuggerManager::setSimpleDockWidgetArrangement()
{
m_mainWindow->setTrackingEnabled(false);
QList<QDockWidget *> dockWidgets = m_mainWindow->dockWidgets();
- foreach (QDockWidget *dockWidget, dockWidgets)
+ foreach (QDockWidget *dockWidget, dockWidgets) {
+ dockWidget->setFloating(false);
m_mainWindow->removeDockWidget(dockWidget);
+ }
foreach (QDockWidget *dockWidget, dockWidgets) {
m_mainWindow->addDockWidget(Qt::BottomDockWidgetArea, dockWidget);