Browse Source

MainWindow: fix layout again

Le Tan 6 years ago
parent
commit
8024b55a75
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/vmainwindow.cpp

+ 1 - 3
src/vmainwindow.cpp

@@ -2310,9 +2310,6 @@ void VMainWindow::saveStateAndGeometry()
 
 void VMainWindow::restoreStateAndGeometry()
 {
-    m_toolDock->setVisible(g_config->getToolsDockChecked());
-    m_searchDock->setVisible(g_config->getSearchDockChecked());
-
     const QByteArray geometry = g_config->getMainWindowGeometry();
     if (!geometry.isEmpty()) {
         restoreGeometry(geometry);
@@ -2320,6 +2317,7 @@ void VMainWindow::restoreStateAndGeometry()
 
     const QByteArray state = g_config->getMainWindowState();
     if (!state.isEmpty()) {
+        // restoreState() will restore the state of dock widgets.
         restoreState(state);
     }