summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/application.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/application.cpp b/client/application.cpp
index e53ad890..061dc37c 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -61,8 +61,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
}
@@ -70,8 +71,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
}