Kaydet (Commit) ec235750 authored tarafından Mike Kaganski's avatar Mike Kaganski

tdf#120271 related: Allow finalizing of LastTimeGetInvolvedShown

This avoids abort() on modifying the setting in case it's finalized

Change-Id: I5982a4d7bf867301d7ba0e7e0dbb3f7c87013134
Reviewed-on: https://gerrit.libreoffice.org/61430
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 6fed64c3
...@@ -1237,7 +1237,8 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) ...@@ -1237,7 +1237,8 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
pInfoBar->addButton(xGetInvolvedButton); pInfoBar->addButton(xGetInvolvedButton);
} }
if (bUpdateLastTimeGetInvolvedShown) if (bUpdateLastTimeGetInvolvedShown
&& !officecfg::Setup::Product::LastTimeGetInvolvedShown::isReadOnly())
{ {
std::shared_ptr<comphelper::ConfigurationChanges> batch(comphelper::ConfigurationChanges::create()); std::shared_ptr<comphelper::ConfigurationChanges> batch(comphelper::ConfigurationChanges::create());
officecfg::Setup::Product::LastTimeGetInvolvedShown::set(nNow, batch); officecfg::Setup::Product::LastTimeGetInvolvedShown::set(nNow, batch);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment