From 234e9dd70074a0eb4734ced3a271447d44a29a8b Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 16 Aug 2013 10:16:10 -0500 Subject: Only dismiss if there is a proxy connected and the application is remote --- src/im-application-list.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/im-application-list.c b/src/im-application-list.c index 2acb3d9..47d81ce 100644 --- a/src/im-application-list.c +++ b/src/im-application-list.c @@ -319,10 +319,14 @@ im_application_list_remove_all (GSimpleAction *action, for (it = message_actions; *it; it++) im_application_list_message_removed (app, *it); - indicator_messages_application_call_dismiss (app->proxy, - (const gchar * const *) source_actions, - (const gchar * const *) message_actions, - app->cancellable, NULL, NULL); + if (app->proxy != NULL) /* If it is remote, we tell the app we've cleared */ + { + gchar * null_list[1] = { NULL }; + indicator_messages_application_call_dismiss (app->proxy, + (const gchar * const *) null_list, + (const gchar * const *) message_actions, + app->cancellable, NULL, NULL); + } g_strfreev (source_actions); g_strfreev (message_actions); -- cgit v1.2.3