mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-09 01:06:58 +00:00
spice: show splash screen on disconnect only on debug
This commit is contained in:
parent
c7346dd0cb
commit
6ff080c0f8
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user