From d227e744d992b1205c9f4347c672e678aff7ee17 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 25 Nov 2009 22:36:42 +0000 Subject: [PATCH] - Use standard Qt notification as fallback if libnotify failed --- src/GUI.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index b6a2dd607..fddbe3b6d 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -67,6 +67,8 @@ using namespace libtorrent; +#define TIME_TRAY_BALLOON 5000 + /***************************************************** * * * GUI * @@ -814,10 +816,9 @@ void GUI::showNotificationBaloon(QString title, QString msg) const { if(success) return; } -#else +#endif if(systrayIcon) systrayIcon->showMessage(title, msg, QSystemTrayIcon::Information, TIME_TRAY_BALLOON); -#endif } }