X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclientbufferviewconfig.cpp;h=1e7f816ce9549dd05afa67e101ac75926aa27d1b;hp=86fbfd905979563faadddb39cdcb1dc974a6199e;hb=52cfbc8ee8f4da6f28c6afef089f8179434e717d;hpb=ee7d56f3abdb6ee4ce6c79ddea0142407b4e9e74 diff --git a/src/client/clientbufferviewconfig.cpp b/src/client/clientbufferviewconfig.cpp index 86fbfd90..1e7f816c 100644 --- a/src/client/clientbufferviewconfig.cpp +++ b/src/client/clientbufferviewconfig.cpp @@ -20,8 +20,21 @@ #include "clientbufferviewconfig.h" +INIT_SYNCABLE_OBJECT(ClientBufferViewConfig) ClientBufferViewConfig::ClientBufferViewConfig(int bufferViewId, QObject *parent) : BufferViewConfig(bufferViewId, parent), _locked(false) { + 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()); }