X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fbacklogsettings.h;h=eec77723f871f34eb7885f1ebcbaa36b13c1352a;hb=ed8a0fbbe0ba28bd321950c45e7bb5cd9249df2e;hp=e2692b0043d105e9f075d6a42a1b403e61cbbcfc;hpb=1cb02004ee5973b89368bd84f234d4652794690d;p=quassel.git diff --git a/src/client/backlogsettings.h b/src/client/backlogsettings.h index e2692b00..eec77723 100644 --- a/src/client/backlogsettings.h +++ b/src/client/backlogsettings.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -23,11 +23,16 @@ #include "clientsettings.h" +// For backlog requester types +#include "backlogrequester.h" + class BacklogSettings : public ClientSettings { public: BacklogSettings() : ClientSettings("Backlog") {} - inline int requesterType() { return localValue("RequesterType", 1).toInt(); } + inline int requesterType() { return localValue("RequesterType", BacklogRequester::PerBufferUnread).toInt(); } + // Default to PerBufferUnread to help work around performance problems on connect when there's + // many buffers that don't have much activity. inline void setRequesterType(int requesterType) { setLocalValue("RequesterType", requesterType); } inline int dynamicBacklogAmount() { return localValue("DynamicBacklogAmount", 200).toInt(); }