From 749a4140f34447f6979decf1a170b8b2506981a5 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Wed, 2 Jun 2010 20:39:27 +0000 Subject: [PATCH] Fixed issue 485 --- gui/src/MainWindow.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/gui/src/MainWindow.cpp b/gui/src/MainWindow.cpp index 789d3056..f30c5a5d 100644 --- a/gui/src/MainWindow.cpp +++ b/gui/src/MainWindow.cpp @@ -54,6 +54,9 @@ MainWindow::MainWindow(QWidget* parent) : loadSettings(); initConnections(); + // HACK - surely window should be visible by default? + setVisible(true); + if (appConfig().autoConnect()) startSynergy(); } @@ -133,12 +136,6 @@ void MainWindow::loadSettings() move(rect.x(), rect.y()); resize(rect.width(), rect.height()); -#if !defined(Q_OS_MAC) - setVisible(settings().value("windowVisible", true).toBool()); -#else - setVisible(true); -#endif - // program settings // the next two must come BEFORE loading groupServerChecked and groupClientChecked or