From: Manuel Nickschas Date: Mon, 21 Sep 2009 08:06:19 +0000 (+0200) Subject: Fix initial backlog for buffers with no new messages X-Git-Tag: 0.5-rc2~26 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=3474e986630907fa2a3f4143012ac2a42796609e Fix initial backlog for buffers with no new messages --- diff --git a/src/core/corebacklogmanager.cpp b/src/core/corebacklogmanager.cpp index 1c3fae98..9ef4b899 100644 --- a/src/core/corebacklogmanager.cpp +++ b/src/core/corebacklogmanager.cpp @@ -43,8 +43,8 @@ QVariantList CoreBacklogManager::requestBacklog(BufferId bufferId, MsgId first, msgIter++; } - if(additional) { - MsgId oldestMessage; + if(additional && limit != 0) { + MsgId oldestMessage = first; if(!msgList.isEmpty()) { if(msgList.first().msgId() < msgList.last().msgId()) oldestMessage = msgList.first().msgId();