projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix visibility issues with StatusNotifier
[quassel.git]
/
src
/
qtui
/
legacysystemtray.cpp
diff --git
a/src/qtui/legacysystemtray.cpp
b/src/qtui/legacysystemtray.cpp
index
9176dbd
..
d58d1d4
100644
(file)
--- a/
src/qtui/legacysystemtray.cpp
+++ b/
src/qtui/legacysystemtray.cpp
@@
-27,7
+27,6
@@
LegacySystemTray::LegacySystemTray(QWidget *parent)
: SystemTray(parent),
_blinkState(false),
LegacySystemTray::LegacySystemTray(QWidget *parent)
: SystemTray(parent),
_blinkState(false),
- _isVisible(true),
_lastMessageId(0)
{
#ifndef HAVE_KDE
_lastMessageId(0)
{
#ifndef HAVE_KDE
@@
-78,9
+77,9
@@
void LegacySystemTray::syncLegacyIcon() {
}
void LegacySystemTray::setVisible(bool visible) {
}
void LegacySystemTray::setVisible(bool visible) {
-
_isVisible = visible
;
+
SystemTray::setVisible(visible)
;
if(mode() == Legacy) {
if(mode() == Legacy) {
- if(
visible
)
+ if(
shouldBeVisible()
)
_trayIcon->show();
else
_trayIcon->hide();
_trayIcon->show();
else
_trayIcon->hide();
@@
-91,7
+90,7
@@
bool LegacySystemTray::isVisible() const {
if(mode() == Legacy) {
return _trayIcon->isVisible();
}
if(mode() == Legacy) {
return _trayIcon->isVisible();
}
- return
false
;
+ return
SystemTray::isVisible()
;
}
void LegacySystemTray::setMode(Mode mode_) {
}
void LegacySystemTray::setMode(Mode mode_) {
@@
-99,8
+98,10
@@
void LegacySystemTray::setMode(Mode mode_) {
if(mode() == Legacy) {
syncLegacyIcon();
if(mode() == Legacy) {
syncLegacyIcon();
- if(
_isVisible
)
+ if(
shouldBeVisible()
)
_trayIcon->show();
_trayIcon->show();
+ else
+ _trayIcon->hide();
if(state() == NeedsAttention)
_blinkTimer.start();
} else {
if(state() == NeedsAttention)
_blinkTimer.start();
} else {