From d89cb46912dd975ecd106328125dfd931760ee99 Mon Sep 17 00:00:00 2001 From: Xinyu Hou Date: Tue, 25 Nov 2014 15:21:30 +0000 Subject: [PATCH] Showed auto connect prompt after main window --- src/gui/src/MainWindow.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index 9699226b..4ed634ab 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -112,10 +112,6 @@ MainWindow::MainWindow(QSettings& settings, AppConfig& appConfig) : setMinimumSize(size()); #endif - if (!appConfig.autoConnectPrompted()) { - promptAutoConnect(); - } - m_pCheckBoxAutoConnect->setChecked(appConfig.autoConnect()); m_pComboServerList->hide(); @@ -144,6 +140,10 @@ void MainWindow::open() m_VersionChecker.checkLatest(); + if (!appConfig().autoConnectPrompted()) { + promptAutoConnect(); + } + // only start if user has previously started. this stops the gui from // auto hiding before the user has configured synergy (which of course // confuses first time users, who think synergy has crashed). @@ -1083,9 +1083,11 @@ void MainWindow::promptAutoConnect() if (r == QMessageBox::Yes) { m_AppConfig.setAutoConnect(true); + m_pCheckBoxAutoConnect->setChecked(true); } else { m_AppConfig.setAutoConnect(false); + m_pCheckBoxAutoConnect->setChecked(false); } m_AppConfig.setAutoConnectPrompted(true);