summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-11-09 11:45:41 +0100
committerHans de Goede <hdegoede@redhat.com>2010-11-09 13:38:43 +0100
commit0bb53766fae863b927f82d06eb85e4f5a8e25280 (patch)
tree271b45b0d889adba0b95609ab9f2d0dacf88c71b
parent8d6b124f2a0e4ab4e3d61415cec77038b94e517f (diff)
downloadspice-0bb53766fae863b927f82d06eb85e4f5a8e25280.tar.gz
spice-0bb53766fae863b927f82d06eb85e4f5a8e25280.tar.xz
spice-0bb53766fae863b927f82d06eb85e4f5a8e25280.zip
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.
-rw-r--r--client/application.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/client/application.cpp b/client/application.cpp
index 27016411..4b22e1f1 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)