mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
- Force libnotify GObject cleanup
This commit is contained in:
parent
eca262f5f4
commit
f8f7729e77
1 changed files with 6 additions and 4 deletions
10
src/GUI.cpp
10
src/GUI.cpp
|
@ -812,11 +812,13 @@ void GUI::showNotificationBaloon(QString title, QString msg) const {
|
||||||
if (notify_init ("summary-body")) {
|
if (notify_init ("summary-body")) {
|
||||||
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);
|
||||||
GError* error = 0;
|
gboolean success = notify_notification_show (notification, NULL);
|
||||||
gboolean success = notify_notification_show (notification, &error);
|
if(success) {
|
||||||
notify_uninit ();
|
g_object_unref(G_OBJECT(notification));
|
||||||
if(success)
|
notify_uninit ();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
notify_uninit ();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if(systrayIcon)
|
if(systrayIcon)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue