Store the type of the current tab completion (user or channel) in the TabCompleter...
[quassel.git] / src / qtui / indicatornotificationbackend.cpp
index 41fce5c..df7b534 100644 (file)
@@ -51,7 +51,7 @@ IndicatorNotificationBackend::IndicatorNotificationBackend(QObject *parent)
     .arg(XSTR(XDG_APPS_INSTALL_DIR))
     .arg(QCoreApplication::applicationFilePath().section('/', -1));
   _server->setDesktopFile(desktopFile);
-  connect(_server, SIGNAL(serverDisplay()), QtUi::mainWindow(), SLOT(forceActivated()));
+  connect(_server, SIGNAL(serverDisplay()), SLOT(activateMainWidget()));
 
   if (_enabled) {
     _server->show();
@@ -62,6 +62,10 @@ IndicatorNotificationBackend::~IndicatorNotificationBackend() {
   qDeleteAll(_indicatorHash);
 }
 
+void IndicatorNotificationBackend::activateMainWidget() {
+  GraphicalUi::activateMainWidget();
+}
+
 void IndicatorNotificationBackend::notify(const Notification &notification) {
   if(!_enabled) {
     return;