From 523e4b471a3ee8a55b6b1d130d36ba86fadd5616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Sun, 11 Mar 2018 12:41:19 +0100 Subject: [PATCH] Fix restoring Window Layout --- src/MainWindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 8947f91c..6dfb524c 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -223,6 +223,9 @@ void MainWindow::initUI() #undef ADD_DOCK + // Set up dock widgets default layout + resetToDefaultLayout(); + // Restore saved settings this->readSettings(); // TODO: Allow the user to select this option visually in the GUI settings @@ -232,8 +235,6 @@ void MainWindow::initUI() setCorner(Qt::BottomLeftCorner, Qt::LeftDockWidgetArea); //setCorner( Qt::BottomRightCorner, Qt::RightDockWidgetArea ); - // Set up dock widgets default layout - resetToDefaultLayout(); /* * Some global shortcuts