X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fcoresession.cpp;h=359c3658533a8598cfdaa7b537288bd475834b09;hb=e7352d23bb54ce36dd4f9aac59a93e2c0a6297f6;hp=929895aec0a999af2b95215bbcbdb5953c11b4d0;hpb=67e4eb295238453c94da41185bcdb20d908859d6;p=quassel.git diff --git a/src/core/coresession.cpp b/src/core/coresession.cpp index 929895ae..359c3658 100644 --- a/src/core/coresession.cpp +++ b/src/core/coresession.cpp @@ -44,7 +44,7 @@ #include "ircchannel.h" #include "ircparser.h" #include "ircuser.h" -#include "logger.h" +#include "logmessage.h" #include "messageevent.h" #include "remotepeer.h" #include "storage.h" @@ -131,7 +131,7 @@ CoreSession::CoreSession(UserId uid, bool restoreState, bool strictIdentEnabled, eventManager()->registerObject(ctcpParser(), EventManager::LowPriority, "send"); // periodically save our session state - connect(&(Core::instance()->syncTimer()), SIGNAL(timeout()), this, SLOT(saveSessionState())); + connect(Core::instance()->syncTimer(), SIGNAL(timeout()), this, SLOT(saveSessionState())); p->synchronize(_bufferSyncer); p->synchronize(&aliasManager()); @@ -142,6 +142,9 @@ CoreSession::CoreSession(UserId uid, bool restoreState, bool strictIdentEnabled, p->synchronize(_coreInfo); p->synchronize(&_ignoreListManager); p->synchronize(&_highlightRuleManager); + // Listen to network removed events + connect(this, SIGNAL(networkRemoved(NetworkId)), + &_highlightRuleManager, SLOT(networkRemoved(NetworkId))); p->synchronize(transferManager()); // Restore session state if (restoreState)