diff options
author | Arnon Gilboa <agilboa@agilboa.usersys.redhat.com> | 2009-11-15 19:02:40 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2009-11-17 16:00:25 +0200 |
commit | 6ff080c0f8b4df4c6113855f59c894605bdcc45c (patch) | |
tree | 872465f9193dcd3eb3a4eeeeea34cb9b7981521f /client | |
parent | c7346dd0cb225edf5ccfe8ac2ffd84d9eba4f221 (diff) | |
download | spice-6ff080c0f8b4df4c6113855f59c894605bdcc45c.tar.gz spice-6ff080c0f8b4df4c6113855f59c894605bdcc45c.tar.xz spice-6ff080c0f8b4df4c6113855f59c894605bdcc45c.zip |
spice: show splash screen on disconnect only on debug
Diffstat (limited to 'client')
-rw-r--r-- | client/application.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/application.cpp b/client/application.cpp index 5a60b9a9..42a65f6c 100644 --- a/client/application.cpp +++ b/client/application.cpp @@ -62,8 +62,9 @@ void ConnectedEvent::response(AbstractProcessLoop& events_loop) void DisconnectedEvent::response(AbstractProcessLoop& events_loop) { Application* app = static_cast<Application*>(events_loop.get_owner()); +#ifdef RED_DEBUG app->show_splash(0); -#ifndef RED_DEBUG +#else app->do_quit(SPICEC_ERROR_CODE_SUCCESS); #endif } @@ -71,8 +72,9 @@ void DisconnectedEvent::response(AbstractProcessLoop& events_loop) void ConnectionErrorEvent::response(AbstractProcessLoop& events_loop) { Application* app = static_cast<Application*>(events_loop.get_owner()); +#ifdef RED_DEBUG app->show_splash(0); -#ifndef RED_DEBUG +#else app->do_quit(_error_code); #endif } |