X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fclient.cpp;h=bac736b0c3c74eda9fb53f46c68d9bfb79d5b632;hb=adff595449304996ee1a5b21f9ee768f83e0a4b1;hp=777b36073b04d204088be033cefda97ab1398851;hpb=d5e2af28c7680ebe5ff68390018f81114675d395;p=quassel.git diff --git a/src/client/client.cpp b/src/client/client.cpp index 777b3607..bac736b0 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -40,6 +40,9 @@ #include "signalproxy.h" #include "util.h" +#include +#include + QPointer Client::instanceptr = 0; AccountId Client::_currentCoreAccount = 0; @@ -277,6 +280,7 @@ void Client::setSyncedToCore() { connect(bufferSyncer(), SIGNAL(lastSeenMsgSet(BufferId, MsgId)), _networkModel, SLOT(setLastSeenMsgId(BufferId, MsgId))); connect(bufferSyncer(), SIGNAL(bufferRemoved(BufferId)), this, SLOT(bufferRemoved(BufferId))); connect(bufferSyncer(), SIGNAL(bufferRenamed(BufferId, QString)), this, SLOT(bufferRenamed(BufferId, QString))); + connect(networkModel(), SIGNAL(setLastSeenMsg(BufferId, MsgId)), bufferSyncer(), SLOT(requestSetLastSeenMsg(BufferId, const MsgId &))); signalProxy()->synchronize(bufferSyncer()); // create a new BufferViewManager @@ -406,11 +410,11 @@ void Client::bufferRenamed(BufferId bufferId, const QString &newName) { } void Client::logMessage(QtMsgType type, const char *msg) { + fprintf(stderr, "%s\n", msg); + fflush(stderr); if(type == QtFatalMsg) { Quassel::logFatalMessage(msg); } else { - fprintf(stderr, "%s\n", msg); - fflush(stderr); QString msgString = QString("%1\n").arg(msg); instance()->_debugLog << msgString; emit instance()->logUpdated(msgString);