[Bug 159717] Lock file warning dialog promotes data disaster

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Feb 19 14:20:05 UTC 2024


https://bugs.documentfoundation.org/show_bug.cgi?id=159717

--- Comment #13 from Heiko Tietze <heiko.tietze at documentfoundation.org> ---
Created attachment 192637
  --> https://bugs.documentfoundation.org/attachment.cgi?id=192637&action=edit
Save dialog

The expert option AllowOverrideLocking toggles whether you can open a file
anyway, does not work here for some reason (always disabled). The
implementation is quite weird with

uui/source/iahndl-locking.cxx
bool bAllowOverride = xRetry.is() &&
officecfg::Office::Common::Misc::AllowOverrideLocking::get();
...
vcl::OpenLockedQueryBox aDialog(pParent, aHiddenData, bAllowOverride);
...
if (!(bEnableOverride &&
officecfg::Office::Common::Misc::AllowOverrideLocking::get()))

If we change the behavior it should rather be the save dialog, and I suggest to
prevent overwriting by asking for a different filename.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list