summaryrefslogtreecommitdiffstats
path: root/src/trayicon.cpp
diff options
context:
space:
mode:
authorClaudio Maradonna <penguyman@stronzi.org>2018-07-24 01:26:22 +0200
committerClaudio Maradonna <penguyman@stronzi.org>2018-07-24 01:26:22 +0200
commit094967fb68c0350d6234cd9374bf24748d7f4133 (patch)
treed6df6569754661cce1882e5aa73873383acadbac /src/trayicon.cpp
parent9ff9147be35f498ec33e42f44a7aa66f9274524e (diff)
Now qDebug enable only if QT_DEBUG is defined. Trying to refactoring MainWindow - QtPass class should handle connecctions and business logic
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;