summaryrefslogtreecommitdiffstats
path: root/src/trayicon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trayicon.cpp')
-rw-r--r--src/trayicon.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/trayicon.cpp b/src/trayicon.cpp
index 12fe2894..12d7b3d9 100644
--- a/src/trayicon.cpp
+++ b/src/trayicon.cpp
@@ -1,10 +1,13 @@
#include "trayicon.h"
-#include "debughelper.h"
#include <QAction>
#include <QApplication>
#include <QMainWindow>
#include <QMenu>
+#ifdef QT_DEBUG
+#include "debughelper.h"
+#endif
+
/**
* @brief TrayIcon::TrayIcon use a (system) tray icon with a nice QtPass logo on
* it (currently) only Quits.
@@ -27,7 +30,9 @@ TrayIcon::TrayIcon(QMainWindow *parent) {
isAllocated = true;
} else {
- dbg() << "No tray icon for this OS possibly also not show options?";
+#ifdef QT_DEBUG
+ dbg() << "No tray icon for this OS possibly also not show options?";
+#endif
isAllocated = false;