diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-08-16 17:53:45 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-08-16 17:54:43 +0200 |
commit | 4e923fb5a293ce570974e620b87ff84ccb6a139b (patch) | |
tree | 61b91a97ac06b00444920a832de8a04c1b5fcd5a /sfx2 | |
parent | d2ca1e5ec8e89d7c44a95fa216aee53b7a47f73d (diff) |
fdo#53280: Reset read-only UI after successful Save As
Change-Id: Ica9214d3655df27bbb259c463a7589a842f01c47
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 6a257432c084..1bd9c9cd8a89 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -694,6 +694,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(); |