From: Manuel Nickschas Date: Sat, 15 Nov 2008 21:31:51 +0000 (+0100) Subject: Don't try to workaround QSystemTray's not being able to close its bubble on Mac X-Git-Tag: 0.3.1~34 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=6848967a5071f48f2cd742b548dd97d8525733df Don't try to workaround QSystemTray's not being able to close its bubble on Mac Displaying an empty bubble with 1ms timeout to force the bubble to close on re-activation does not work on Mac either. Please let me know if there are problems with that on X11 as well. Fixes BR #290. --- diff --git a/src/qtui/systraynotificationbackend.cpp b/src/qtui/systraynotificationbackend.cpp index 35dd2dd7..219a9817 100644 --- a/src/qtui/systraynotificationbackend.cpp +++ b/src/qtui/systraynotificationbackend.cpp @@ -86,9 +86,8 @@ void SystrayNotificationBackend::showBubble() { } void SystrayNotificationBackend::closeBubble() { - // there really seems to be no decent way to close the bubble... - // in addition, windows ignores the timeout -_- -#ifndef Q_WS_WIN + // there really seems to be no sane way to close the bubble... :( +#ifdef Q_WS_X11 QtUi::mainWindow()->systemTrayIcon()->showMessage("", "", QSystemTrayIcon::NoIcon, 1); #endif }