X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsystraynotificationbackend.cpp;h=7413495470cbaf83954a52d127af55787a6d2089;hb=fdfd62334f728bd05470c5191194d55027fec86e;hp=dade7081af1706b591aa873a0d5203e8c1238153;hpb=0009480271c2420f8afb3ceaf97c57e58af16cad;p=quassel.git diff --git a/src/qtui/systraynotificationbackend.cpp b/src/qtui/systraynotificationbackend.cpp index dade7081..74134954 100644 --- a/src/qtui/systraynotificationbackend.cpp +++ b/src/qtui/systraynotificationbackend.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2010 by the Quassel Project * + * Copyright (C) 2005-2012 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -88,7 +88,8 @@ void SystrayNotificationBackend::close(uint notificationId) { void SystrayNotificationBackend::notificationActivated(uint notificationId) { if(!_blockActivation) { if(_notifications.count()) { - _blockActivation = true; // prevent double activation because both tray icon and bubble might send a signal + if(QtUi::mainWindow()->systemTray()->mode() == SystemTray::Legacy) + _blockActivation = true; // prevent double activation because both tray icon and bubble might send a signal if(!notificationId) notificationId = _notifications.count()? _notifications.last().notificationId : 0; emit activated(notificationId); @@ -121,7 +122,7 @@ void SystrayNotificationBackend::animateChanged(const QVariant &v) { void SystrayNotificationBackend::updateToolTip() { QtUi::mainWindow()->systemTray()->setToolTip("Quassel IRC", - _notifications.count()? tr("%n pending highlights", "", _notifications.count()) : QString()); + _notifications.count()? tr("%n pending highlight(s)", "", _notifications.count()) : QString()); } SettingsPage *SystrayNotificationBackend::createConfigWidget() const {