summaryrefslogtreecommitdiff
path: root/gtk/gtkmountoperation.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-09-18 13:48:07 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-09-18 13:48:07 -0400
commit5addd8cbe6451c90ba7bbc7f7baff1741ec186ae (patch)
tree78561c7ded2e48ffbd80ec2da6ebd72c54071863 /gtk/gtkmountoperation.c
parenta67e8855318d1c252af1787b040b94509e863abb (diff)
downloadgtk+-5addd8cbe6451c90ba7bbc7f7baff1741ec186ae.tar.gz
mountoperation: fix previous commit
We don't want to call this method if there's no shell agent.
Diffstat (limited to 'gtk/gtkmountoperation.c')
-rw-r--r--gtk/gtkmountoperation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index 47b7ff22b3..ed9178ae07 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -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