X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fbacklogsettings.h;h=eec77723f871f34eb7885f1ebcbaa36b13c1352a;hb=ffa9c1a119c458b8bef2dfa226ce6222b845e56f;hp=d0c6d3068caecf3ffac55f4d83c7674799e2caef;hpb=5b686746c880e5cda6d5de3e08180ea4332ff222;p=quassel.git diff --git a/src/client/backlogsettings.h b/src/client/backlogsettings.h index d0c6d306..eec77723 100644 --- a/src/client/backlogsettings.h +++ b/src/client/backlogsettings.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2012 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(); }