X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclientbufferviewconfig.cpp;h=90771a69f203ffc0e3b07d05c16f6ae81d35b9db;hp=1e7f816ce9549dd05afa67e101ac75926aa27d1b;hb=694f9bfbf7f1af19108461c7e00d133e55082bce;hpb=61c8d84d1c849373e0f115dc748ed45cff95287d diff --git a/src/client/clientbufferviewconfig.cpp b/src/client/clientbufferviewconfig.cpp index 1e7f816c..90771a69 100644 --- a/src/client/clientbufferviewconfig.cpp +++ b/src/client/clientbufferviewconfig.cpp @@ -22,19 +22,21 @@ INIT_SYNCABLE_OBJECT(ClientBufferViewConfig) ClientBufferViewConfig::ClientBufferViewConfig(int bufferViewId, QObject *parent) - : BufferViewConfig(bufferViewId, parent), + : BufferViewConfig(bufferViewId, parent), _locked(false) { - connect(this, SIGNAL(initDone()), this, SLOT(ensureDecoration())); + connect(this, SIGNAL(initDone()), this, SLOT(ensureDecoration())); } + // currently we don't have a possibility to configure disableDecoration // if we have an old config this value can be true which is... bad. // so we upgrade the core stored bufferViewConfig. // This can be removed with the next release -void ClientBufferViewConfig::ensureDecoration() { - if(!disableDecoration()) - return; - setDisableDecoration(false); - requestUpdate(toVariantMap()); +void ClientBufferViewConfig::ensureDecoration() +{ + if (!disableDecoration()) + return; + setDisableDecoration(false); + requestUpdate(toVariantMap()); }