Move a confusing comment to the right place
authorMatthias Clasen <mclasen@redhat.com>
Sat, 23 Oct 2010 10:01:51 +0000 (12:01 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 23 Oct 2010 10:01:51 +0000 (12:01 +0200)
gio/gapplication.c
gio/gapplicationimpl-dbus.c

index 6522aaa..f79302f 100644 (file)
@@ -884,12 +884,6 @@ g_application_register (GApplication  *application,
   if (!application->priv->is_registered)
     {
       gboolean is_remote;
-      gboolean try;
-
-      /* don't try to be the primary instance if
-       * G_APPLICATION_IS_LAUNCHER was specified.
-       */
-      try = !(application->priv->flags & G_APPLICATION_IS_LAUNCHER);
 
       application->priv->impl =
         g_application_impl_register (application, application->priv->id,
index e41f01e..893c96b 100644 (file)
@@ -271,6 +271,9 @@ g_application_impl_register (GApplication       *application,
 
   impl->object_path = application_path_from_appid (appid);
 
+  /* don't try to be the primary instance if
+   * G_APPLICATION_IS_LAUNCHER was specified.
+   */
   if (flags & G_APPLICATION_IS_LAUNCHER)
     {
       impl->object_id = 0;