Commit 64c8d93c authored by Guido Gunther's avatar Guido Gunther Committed by Sebastian Krzyszkowiak

notify-manager: ignore errors closing inexistent notifications

This trips up qt 5.11 otherwise
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 7bc93387
Pipeline #37206 passed with stages
in 10 minutes and 39 seconds
......@@ -89,10 +89,12 @@ handle_close_notification (PhoshNotifyDbusNotifications *skeleton,
g_return_val_if_fail (PHOSH_IS_NOTIFY_MANAGER (self), FALSE);
g_debug ("DBus call CloseNotification %u", arg_id);
if (!phosh_notify_manager_close_notification (self, arg_id,
PHOSH_NOTIFY_MANAGER_REASON_CLOSED)) {
return FALSE;
}
/*
* ignore errors when closing non-existent notifcation, at least qt 5.11 is not
* happy about it.
*/
phosh_notify_manager_close_notification (self, arg_id,
PHOSH_NOTIFY_MANAGER_REASON_CLOSED);
phosh_notify_dbus_notifications_complete_close_notification (
skeleton, invocation);
......
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