Quit cleanly if we exit before Gtk main loop starts. Closes #4328
This commit is contained in:
parent
12680575a3
commit
2bc863ed39
1 changed files with 4 additions and 1 deletions
|
|
@ -129,7 +129,10 @@ public abstract class YorbaApplication {
|
|||
exiting_fired = true;
|
||||
exiting(false);
|
||||
|
||||
Gtk.main_quit();
|
||||
if (Gtk.main_level() > 0)
|
||||
Gtk.main_quit();
|
||||
else
|
||||
Posix.exit(exitcode);
|
||||
}
|
||||
|
||||
// This call will fire "exiting" only if it's not already been fired and halt the application
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue