summaryrefslogtreecommitdiffstats
path: root/src/pvsgui.cpp
diff options
context:
space:
mode:
authorjjl2010-09-22 20:38:27 +0200
committerjjl2010-09-22 20:38:27 +0200
commit26752f0c28606b79fd2601be5f37eda66fed4be8 (patch)
tree4d5f788c3c4cff0dee41e60e8de3ab68b2abd946 /src/pvsgui.cpp
parentGnome autostart fixed (diff)
downloadpvs-26752f0c28606b79fd2601be5f37eda66fed4be8.tar.gz
pvs-26752f0c28606b79fd2601be5f37eda66fed4be8.tar.xz
pvs-26752f0c28606b79fd2601be5f37eda66fed4be8.zip
[PVSGUI] always construct QSystemTrayIcon, even if systray is not available
Diffstat (limited to 'src/pvsgui.cpp')
-rw-r--r--src/pvsgui.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/pvsgui.cpp b/src/pvsgui.cpp
index 747d843..5f2ac60 100644
--- a/src/pvsgui.cpp
+++ b/src/pvsgui.cpp
@@ -44,16 +44,10 @@ PVSGUI::PVSGUI(QWidget *parent) :
setupMenu();
- if (QSystemTrayIcon::isSystemTrayAvailable())
- {
- qDebug("[%s] System tray available.", metaObject()->className());
- _trayIcon = new QSystemTrayIcon(QIcon(":cam_off32.svg"), this);
- _trayIcon->setContextMenu(_menu);
- _trayIcon->setVisible(true);
- _chatDialog->setTrayIcon(_trayIcon);
- }
- else
- _trayIcon = NULL;
+ _trayIcon = new QSystemTrayIcon(QIcon(":cam_off32.svg"), this);
+ _trayIcon->setContextMenu(_menu);
+ _trayIcon->setVisible(true);
+ _chatDialog->setTrayIcon(_trayIcon);
// connect to D-Bus and get interface
QDBusConnection dbus = QDBusConnection::sessionBus();