diff options
author | Serge Krot <Serge.Krot@cib.de> | 2019-11-08 17:31:49 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2019-11-09 11:41:28 +0100 |
commit | b505ca5b9c31b3d9c639406d03a25bea4e914242 (patch) | |
tree | 5c59ac083c20b72a19cfff546408dc929af8ab8e /sfx2/source | |
parent | 5f0844077d289a257b914f0aad9fd93788f34511 (diff) |
Switch to read-only mode: do not force reload document if possible
Change-Id: I5f83e7626e58cb4b558b54130b725b1041b7142f
Reviewed-on: https://gerrit.libreoffice.org/82313
Reviewed-by: Serge Krot (CIB) <Serge.Krot@cib.de>
Tested-by: Serge Krot (CIB) <Serge.Krot@cib.de>
(cherry picked from commit b92e774bbfe83aba80c8d480399887394937cc96)
Reviewed-on: https://gerrit.libreoffice.org/82314
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sfx2/source')
-rwxr-xr-x[-rw-r--r--] | sfx2/source/view/viewfrm.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index fafe5df417dc..e3f39e3aab40 100644..100755 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -459,6 +459,8 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) || pVersionItem ) // <- tdf#82744 { + bNeedsReload = true; + bool bOK = false; bool bRetryIgnoringLock = false; bool bOpenTemplate = false; @@ -601,7 +603,7 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) } } - rReq.AppendItem( SfxBoolItem( SID_FORCERELOAD, true) ); + rReq.AppendItem( SfxBoolItem( SID_FORCERELOAD, bNeedsReload) ); rReq.AppendItem( SfxBoolItem( SID_SILENT, true )); [[fallthrough]]; //TODO ??? |