Move a confusing comment to the right place

This commit is contained in:
Matthias Clasen 2010-10-23 12:01:51 +02:00
parent b0e45c9799
commit 7c735b05f7
2 changed files with 3 additions and 6 deletions

View 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,

View 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;