Deuglify channel state icons
[quassel.git] / src / core / sessionthread.cpp
index cee4c8d..35caf13 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-08 by the Quassel IRC Team                         *
+ *   Copyright (C) 2005-09 by the Quassel Project                          *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -23,6 +23,7 @@
 #include "sessionthread.h"
 #include "signalproxy.h"
 #include "coresession.h"
+#include "core.h"
 
 SessionThread::SessionThread(UserId uid, bool restoreState, QObject *parent)
   : QThread(parent),
@@ -98,6 +99,7 @@ void SessionThread::run() {
   _session = new CoreSession(user(), _restoreState);
   connect(this, SIGNAL(addRemoteClient(QIODevice *)), _session, SLOT(addClient(QIODevice *)));
   connect(this, SIGNAL(addInternalClient(SignalProxy *)), _session, SLOT(addClient(SignalProxy *)));
+  connect(_session, SIGNAL(sessionState(const QVariant &)), Core::instance(), SIGNAL(sessionState(const QVariant &)));
   emit initialized();
   exec();
   delete _session;