X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.cpp;h=8bbafb24d6fa9fcf0f75383e802abc47ad427b24;hp=d6f243f4cb4a6a1f5681d21f94065c7a1acd9a61;hb=a84b3ab2b92bc8c5ac504e5430eb81d05efc690e;hpb=99fb0a0f1f66ae5117fa64cc204256e5b3a19499 diff --git a/src/client/client.cpp b/src/client/client.cpp index d6f243f4..8bbafb24 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -327,7 +327,6 @@ void Client::syncToCore(const QVariant &coreState) { instance()->connectedToCore = true; updateCoreConnectionProgress(); - emit connected(); // FIXME EgS: moved here from updateCoreConnectionProgress } void Client::updateCoreConnectionProgress() { @@ -381,7 +380,7 @@ void Client::updateCoreConnectionProgress() { } emit coreConnectionProgress(1,1); - //emit connected(); // FIXME EgS: This caused the double backlog... but... we shouldn't be calling this whole function all the time... + emit connected(); // FIXME EgS: This caused the double backlog... but... we shouldn't be calling this whole function all the time... foreach(NetworkInfo *net, networkInfos()) { disconnect(net, 0, this, SLOT(updateCoreConnectionProgress())); @@ -445,9 +444,11 @@ void Client::networkConnected(uint netid) { // FIXME EgS: do we really need to call updateCoreConnectionProgress whenever a new network is connected? NetworkInfo *netinfo = new NetworkInfo(netid, signalProxy(), this); - connect(netinfo, SIGNAL(initDone()), this, SLOT(updateCoreConnectionProgress())); - connect(netinfo, SIGNAL(ircUserInitDone()), this, SLOT(updateCoreConnectionProgress())); - connect(netinfo, SIGNAL(ircChannelInitDone()), this, SLOT(updateCoreConnectionProgress())); + if(!isConnected()) { + connect(netinfo, SIGNAL(initDone()), this, SLOT(updateCoreConnectionProgress())); + connect(netinfo, SIGNAL(ircUserInitDone()), this, SLOT(updateCoreConnectionProgress())); + connect(netinfo, SIGNAL(ircChannelInitDone()), this, SLOT(updateCoreConnectionProgress())); + } connect(netinfo, SIGNAL(destroyed()), this, SLOT(networkInfoDestroyed())); _networkInfo[netid] = netinfo; }