Change application entry in indicator menu to behave like system tray icon
[quassel.git] / src / qtui / indicatornotificationbackend.cpp
index ec76443..84e767e 100644 (file)
@@ -41,14 +41,14 @@ IndicatorNotificationBackend::IndicatorNotificationBackend(QObject *parent)
   : AbstractNotificationBackend(parent)
 {
   NotificationSettings notificationSettings;
-  _enabled = notificationSettings.value("Indicator/Enabled", true).toBool();
+  _enabled = notificationSettings.value("Indicator/Enabled", false).toBool();
 
   notificationSettings.notify("Indicator/Enabled", this, SLOT(enabledChanged(const QVariant &)));
 
   _server = QIndicate::Server::defaultInstance();
   _server->setType("message.irc");
   _server->setDesktopFile(XSTR(DESKTOP_FILE));
-  connect(_server, SIGNAL(serverDisplay()), QtUi::mainWindow(), SLOT(forceActivated()));
+  connect(_server, SIGNAL(serverDisplay()), QtUi::mainWindow(), SLOT(toggleMinimizedToTray()));
 
   if (_enabled) {
     _server->show();