mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
- Force libnotify GObject cleanup
This commit is contained in:
parent
eca262f5f4
commit
f8f7729e77
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")) {
|
||||
NotifyNotification* notification;
|
||||
notification = notify_notification_new (title.toLocal8Bit().data(), msg.toLocal8Bit().data(), "qbittorrent", 0);
|
||||
GError* error = 0;
|
||||
gboolean success = notify_notification_show (notification, &error);
|
||||
notify_uninit ();
|
||||
if(success)
|
||||
gboolean success = notify_notification_show (notification, NULL);
|
||||
if(success) {
|
||||
g_object_unref(G_OBJECT(notification));
|
||||
notify_uninit ();
|
||||
return;
|
||||
}
|
||||
notify_uninit ();
|
||||
}
|
||||
#endif
|
||||
if(systrayIcon)
|
||||
|
Loading…
x
Reference in New Issue
Block a user