|
|
@ -803,7 +803,7 @@ void GUI::updateGUI() { |
|
|
|
|
|
|
|
|
|
|
|
void GUI::showNotificationBaloon(QString title, QString msg) const { |
|
|
|
void GUI::showNotificationBaloon(QString title, QString msg) const { |
|
|
|
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent")); |
|
|
|
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent")); |
|
|
|
if(systrayIcon && settings.value(QString::fromUtf8("Preferences/General/NotificationBaloons"), true).toBool()) { |
|
|
|
if(settings.value(QString::fromUtf8("Preferences/General/NotificationBaloons"), true).toBool()) { |
|
|
|
#ifdef WITH_LIBNOTIFY |
|
|
|
#ifdef WITH_LIBNOTIFY |
|
|
|
if (notify_init ("summary-body")) { |
|
|
|
if (notify_init ("summary-body")) { |
|
|
|
NotifyNotification* notification; |
|
|
|
NotifyNotification* notification; |
|
|
@ -815,6 +815,7 @@ void GUI::showNotificationBaloon(QString title, QString msg) const { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
#else |
|
|
|
#else |
|
|
|
|
|
|
|
if(systrayIcon) |
|
|
|
systrayIcon->showMessage(title, msg, QSystemTrayIcon::Information, TIME_TRAY_BALLOON); |
|
|
|
systrayIcon->showMessage(title, msg, QSystemTrayIcon::Information, TIME_TRAY_BALLOON); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
|