Quit cleanly if we exit before Gtk main loop starts. Closes #4328

This commit is contained in:
Eric Gregory 2011-11-01 15:07:23 -07:00
parent 12680575a3
commit 2bc863ed39

View file

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