From 5addd8cbe6451c90ba7bbc7f7baff1741ec186ae Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 18 Sep 2012 13:48:07 -0400 Subject: [PATCH] mountoperation: fix previous commit We don't want to call this method if there's no shell agent. --- gtk/gtkmountoperation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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