gui: Menu should be associated with tray icon in any case, even if adhoc is not supported
Change-Id: I19ab5230636f080da2c9861e89867c4340fec14a
diff --git a/gui/chronosharegui.cpp b/gui/chronosharegui.cpp
index 0d3580e..2901cdd 100644
--- a/gui/chronosharegui.cpp
+++ b/gui/chronosharegui.cpp
@@ -343,10 +343,8 @@
// create new tray icon
m_trayIcon = new QSystemTrayIcon(this);
-#ifdef ADHOC_SUPPORTED
// associate the menu with the tray icon
m_trayIcon->setContextMenu(m_trayIconMenu);
-#endif
// handle left click of icon
connect(m_trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(trayIconClicked(QSystemTrayIcon::ActivationReason)));