From 42fb103738197899516db20b498ae8a2e43168b4 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Sun, 21 Nov 2010 22:18:56 +0000 Subject: [PATCH] Reactivate command line switch -m for start minimized. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3848 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/main.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/retroshare-gui/src/main.cpp b/retroshare-gui/src/main.cpp index b1da2c43c..7503e73a2 100644 --- a/retroshare-gui/src/main.cpp +++ b/retroshare-gui/src/main.cpp @@ -103,13 +103,6 @@ int main(int argc, char *argv[]) in this case it can be use only for default values */ RshareSettings::Create (); - /* - Function RsConfigMinimised is not available in SVN, so I commented it out. - bool startMinimised = RsConfigStartMinimised(config); - */ - - //bool startMinimized = false; - /* Setup The GUI Stuff */ Rshare rshare(args, argc, argv, QString::fromStdString(RsInit::RsConfigDirectory())); @@ -269,11 +262,11 @@ int main(int argc, char *argv[]) w->installGroupChatNotifier(); /* only show window, if not startMinimized */ - if(!Settings->value(QString::fromUtf8("StartMinimized"), false).toBool()) + if (RsInit::setStartMinimised() || Settings->value("StartMinimized", false).toBool()) { - w->show(); - } else { splashScreen.close(); + } else { + w->show(); } /* Startup a Timer to keep the gui's updated */