diff --git a/mainwindow.cc b/mainwindow.cc index 19e8c0a6..8b47441b 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -743,13 +743,14 @@ MainWindow::MainWindow( Config::Class & cfg_ ): } else #endif +#ifndef Q_OS_MAC { if ( cfg.mainWindowGeometry.size() ) restoreGeometry( cfg.mainWindowGeometry ); if ( cfg.mainWindowState.size() ) restoreState( cfg.mainWindowState, 1 ); } - +#endif updateSearchPaneAndBar( cfg.preferences.searchInDock ); ui.searchPane->setVisible( cfg.preferences.searchInDock ); @@ -769,6 +770,15 @@ MainWindow::MainWindow( Config::Class & cfg_ ): setWindowTitle( "GoldenDict" ); +#ifdef Q_OS_MAC + { + if ( cfg.mainWindowGeometry.size() ) + restoreGeometry( cfg.mainWindowGeometry ); + if ( cfg.mainWindowState.size() ) + restoreState( cfg.mainWindowState, 1 ); + } +#endif + blockUpdateWindowTitle = true; addNewTab();