Commit 5addd8cb authored by Cosimo Cecchi's avatar Cosimo Cecchi

mountoperation: fix previous commit

We don't want to call this method if there's no shell agent.
parent a67e8855
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment