[glib] GApplication: don't shutdown() on failure to start
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GApplication: don't shutdown() on failure to start
- Date: Sat, 24 Nov 2012 18:21:27 +0000 (UTC)
commit 543bbd8752cf6370897c711afed3caa0663a4850
Author: Ryan Lortie <desrt desrt ca>
Date: Sat Nov 24 13:20:29 2012 -0500
GApplication: don't shutdown() on failure to start
If we fail to start (and don't register() or call startup()) then also
don't call shutdown(). This happens in the case of failing to parse
commandline arguments, for example.
gio/gapplication.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gapplication.c b/gio/gapplication.c
index 91d7b4f..29a5149d 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -1621,7 +1621,7 @@ g_application_run (GApplication *application,
status = 0;
}
- if (!application->priv->is_remote)
+ if (application->priv->is_registered && !application->priv->is_remote)
{
g_signal_emit (application, g_application_signals[SIGNAL_SHUTDOWN], 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]