X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoresession.cpp;h=fd9a872e60c4adf03d2caab2862d1157f5375d15;hp=841ae7c1a31cc77b39f42bd45357cc88d9af5652;hb=3c2914faeb01f3bc32e29f40179ae88040fbcf59;hpb=7897b8623a42967511e31c68d5c102033a1dcdb9 diff --git a/src/core/coresession.cpp b/src/core/coresession.cpp index 841ae7c1..fd9a872e 100644 --- a/src/core/coresession.cpp +++ b/src/core/coresession.cpp @@ -80,7 +80,8 @@ CoreSession::CoreSession(UserId uid, bool restoreState, QObject *parent) foreach(BufferId id, lastSeenHash.keys()) _bufferSyncer->requestSetLastSeenMsg(id, lastSeenHash[id]); - connect(_bufferSyncer, SIGNAL(lastSeenMsgSet(BufferId, MsgId)), this, SLOT(storeBufferLastSeenMsg(BufferId, MsgId))); + // connect(_bufferSyncer, SIGNAL(lastSeenMsgSet(BufferId, MsgId)), this, SLOT(storeBufferLastSeenMsg(BufferId, MsgId))); + connect(&(Core::instance()->syncTimer()), SIGNAL(timeout()), _bufferSyncer, SLOT(storeDirtyIds())); p->synchronize(_bufferSyncer); @@ -158,6 +159,7 @@ void CoreSession::loadSettings() { } void CoreSession::saveSessionState() const { + _bufferSyncer->storeDirtyIds(); } void CoreSession::restoreSessionState() {