diff --git a/mainwindow.cc b/mainwindow.cc index 2bf2b1c9..1643be73 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -706,14 +706,7 @@ MainWindow::MainWindow( Config::Class & cfg_ ): connect( &ftsIndexing, &FTS::FtsIndexing::newIndexingName, this, &MainWindow::showFTSIndexingName ); -#ifndef Q_OS_MAC - { - if ( cfg.mainWindowGeometry.size() ) - restoreGeometry( cfg.mainWindowGeometry ); - if ( cfg.mainWindowState.size() ) - restoreState( cfg.mainWindowState, 1 ); - } -#endif + applyProxySettings(); @@ -736,21 +729,28 @@ 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(); // Create tab list menu createTabList(); +#ifndef Q_OS_MAC + { + if( cfg.mainWindowGeometry.size() ) + restoreGeometry( cfg.mainWindowGeometry ); + if( cfg.mainWindowState.size() ) + restoreState( cfg.mainWindowState, 1 ); + } +#else + { + if( cfg.mainWindowGeometry.size() ) + restoreGeometry( cfg.mainWindowGeometry ); + if( cfg.mainWindowState.size() ) + restoreState( cfg.mainWindowState, 1 ); + } +#endif + // Show the initial welcome text {