X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient%2Fclient.cpp;h=87fa59f82110179ffa66eddba478c7bf6555a39d;hb=48dda5f3e963e13e36300ddaef262660bf169672;hp=23b838ff4b08495a7d38c41b9f1fe8206051416e;hpb=f88bfa81380ceb2c4afce5b15f753570a1ef063d;p=quassel.git diff --git a/src/client/client.cpp b/src/client/client.cpp index 23b838ff..87fa59f8 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -168,6 +168,10 @@ void Client::init() connect(this, SIGNAL(connected()), mainUi(), SLOT(connectedToCore())); connect(this, SIGNAL(disconnected()), mainUi(), SLOT(disconnectedFromCore())); + // Listen to network removed events + connect(this, SIGNAL(networkRemoved(NetworkId)), + _messageProcessor, SLOT(networkRemoved(NetworkId))); + // attach backlog manager p->synchronize(backlogManager()); connect(backlogManager(), SIGNAL(messagesReceived(BufferId, int)), _messageModel, SLOT(messagesReceived(BufferId, int))); @@ -444,6 +448,9 @@ void Client::setSyncedToCore() Q_ASSERT(!_highlightRuleManager); _highlightRuleManager = new HighlightRuleManager(this); p->synchronize(highlightRuleManager()); + // Listen to network removed events + connect(this, SIGNAL(networkRemoved(NetworkId)), + _highlightRuleManager, SLOT(networkRemoved(NetworkId))); /* not ready yet // create TransferManager and DccConfig if core supports them