mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 09:13:08 -07:00
Force libnotify GObject cleanup even when libnotify fails
This commit is contained in:
parent
f8f7729e77
commit
1f104f62f5
1 changed files with 2 additions and 3 deletions
|
@ -813,12 +813,11 @@ void GUI::showNotificationBaloon(QString title, QString msg) const {
|
||||||
NotifyNotification* notification;
|
NotifyNotification* notification;
|
||||||
notification = notify_notification_new (title.toLocal8Bit().data(), msg.toLocal8Bit().data(), "qbittorrent", 0);
|
notification = notify_notification_new (title.toLocal8Bit().data(), msg.toLocal8Bit().data(), "qbittorrent", 0);
|
||||||
gboolean success = notify_notification_show (notification, NULL);
|
gboolean success = notify_notification_show (notification, NULL);
|
||||||
|
g_object_unref(G_OBJECT(notification));
|
||||||
|
notify_uninit ();
|
||||||
if(success) {
|
if(success) {
|
||||||
g_object_unref(G_OBJECT(notification));
|
|
||||||
notify_uninit ();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
notify_uninit ();
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if(systrayIcon)
|
if(systrayIcon)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue