diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-19 11:00:58 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-02-06 16:46:07 +0100 |
commit | 0f5dcfc6c8909b29b5b589abc209f5fbbdcdadec (patch) | |
tree | c3c74709ddef5456bbf77bdee7f73726697c25b8 | |
parent | a86f6be7d9602025877fdc95e3d6f81008aa1dc4 (diff) |
Re fdo#80538: Remove read-only infobar after "Save As..."
...on a doc in r/o mode, which will switch to the newly saved document in r/w
mode. Was missing from c6270de939d5ee51b61dc4ac02c52f1d9b5b1e47 "fdo#80538 Show
an infobar when document is in read-only mode."
Change-Id: Ie17f4213f989cb4b9d3f7fc114392ec6f516a965
(cherry picked from commit 02f76dec4c54ec7fb28729941c7044307058665a)
Reviewed-on: https://gerrit.libreoffice.org/14012
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 9dc181c89eac..1d0c6cfc0c2c 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -731,6 +731,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) if ( nId == SID_SAVEASDOC && nErrorCode == ERRCODE_NONE ) { + GetFrame()->RemoveInfoBar("readonly"); SetReadOnlyUI(false); } |