From 7de282e852c2b08c1cb166528a56eeef9d04e348 Mon Sep 17 00:00:00 2001 From: Marcus Eggenberger Date: Tue, 24 Mar 2009 17:06:05 +0100 Subject: [PATCH] Lazy backlog fetching for removed buffers. Selecting a removed buffer fetches backlog for it on demand. --- src/uisupport/abstractbuffercontainer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uisupport/abstractbuffercontainer.cpp b/src/uisupport/abstractbuffercontainer.cpp index 88fb4348..9861d14b 100644 --- a/src/uisupport/abstractbuffercontainer.cpp +++ b/src/uisupport/abstractbuffercontainer.cpp @@ -20,6 +20,7 @@ #include "abstractbuffercontainer.h" #include "client.h" +#include "clientbacklogmanager.h" #include "networkmodel.h" AbstractBufferContainer::AbstractBufferContainer(QWidget *parent) @@ -93,5 +94,6 @@ void AbstractBufferContainer::setCurrentBuffer(BufferId bufferId) { _currentBuffer = bufferId; showChatView(bufferId); Client::networkModel()->clearBufferActivity(bufferId); + Client::backlogManager()->checkForBacklog(bufferId); setFocus(); } -- 2.20.1