diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-08-16 17:53:45 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-08-16 17:12:21 +0100 |
commit | 9c2588950be1d4b3051586359175b5a643fee880 (patch) | |
tree | 3db33b5e07ec521813dc39d958a56487dafe1123 /sfx2 | |
parent | 9082c45b911ff605622cf67007c79a244a230e7b (diff) |
fdo#53280: Reset read-only UI after successful Save As
Change-Id: Ica9214d3655df27bbb259c463a7589a842f01c47
Signed-off-by: Michael Meeks <michael.meeks@suse.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 7b4475af6753..b305a82948a4 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -705,6 +705,11 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) nErrorCode = ( lErr != ERRCODE_IO_ABORT ) && ( nErrorCode == ERRCODE_NONE ) ? nErrorCode : lErr; } + if (nId == SID_SAVEASDOC && nErrorCode == ERRCODE_NONE) + { + SetReadOnlyUI(false); + } + rReq.SetReturnValue( SfxBoolItem(0, nErrorCode == ERRCODE_NONE ) ); ResetError(); |