mountoperation: fix previous commit

We don't want to call this method if there's no shell agent.
This commit is contained in:
Cosimo Cecchi 2012-09-18 13:48:07 -04:00
parent a67e885531
commit 5addd8cbe6

View File

@ -202,7 +202,8 @@ gtk_mount_operation_init (GtkMountOperation *operation)
g_clear_object (&operation->priv->handler);
g_free (name_owner);
g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (operation->priv->handler), G_MAXINT);
if (operation->priv->handler)
g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (operation->priv->handler), G_MAXINT);
}
static void