X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclientbufferviewconfig.cpp;h=76a63165312404cc9e21821c08b71b438c7906a4;hp=86fbfd905979563faadddb39cdcb1dc974a6199e;hb=e33d712c496a8d3d6d56ec193d07ebc71fab44f6;hpb=ee7d56f3abdb6ee4ce6c79ddea0142407b4e9e74 diff --git a/src/client/clientbufferviewconfig.cpp b/src/client/clientbufferviewconfig.cpp index 86fbfd90..76a63165 100644 --- a/src/client/clientbufferviewconfig.cpp +++ b/src/client/clientbufferviewconfig.cpp @@ -24,4 +24,16 @@ 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()); }