diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-11-09 11:45:41 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-11-09 13:03:58 +0100 |
commit | c278cfa88c22b9426ac4a37847f69318c2b1de20 (patch) | |
tree | a123a90bdbf4d9a80edcb3f22fd72b3389032a37 /client/application.cpp | |
parent | cec1d980293308fd25e3600cd44eceb208442172 (diff) |
spicec: Don't show gui when connection info is specified on the cmdline
Currently when compiled with the gui enabled if you specify a host to connect
to on the cmdline the gui flashes by (show_gui gets called, then the connect
handler calls hide_gui as soon as the connection is made).
This patch removes this ugly flashing by of the gui.
Diffstat (limited to 'client/application.cpp')
-rw-r--r-- | client/application.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/client/application.cpp b/client/application.cpp index 2701641..4b22e1f 100644 --- a/client/application.cpp +++ b/client/application.cpp @@ -602,14 +602,12 @@ void Application::on_start_running() } //FIXME: _client.connect() or use the following instead? #ifdef USE_GUI - if (_gui_mode != GUI_MODE_FULL) { - connect(); + if (_gui_mode == GUI_MODE_FULL) { + show_gui(); + return; } - - show_gui(); -#else - connect(); #endif // HAVE_GUI + connect(); } RedScreen* Application::find_screen(int id) |