spice: show splash screen on disconnect only on debug

This commit is contained in:
Arnon Gilboa 2009-11-15 19:02:40 +02:00 committed by Yaniv Kamay
parent 6031cb8276
commit ba04ac69c6

View File

@ -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
}