| author | Stephan Bergmann <sbergman@redhat.com> | 2012-08-16 15:53:45 (GMT) |
|---|---|---|
| committer | Stephan Bergmann <sbergman@redhat.com> | 2012-08-16 15:54:43 (GMT) |
| commit | 4e923fb5a293ce570974e620b87ff84ccb6a139b (patch) (side-by-side diff) | |
| tree | 61b91a97ac06b00444920a832de8a04c1b5fcd5a | |
| parent | d2ca1e5ec8e89d7c44a95fa216aee53b7a47f73d (diff) | |
| download | core-4e923fb5a293ce570974e620b87ff84ccb6a139b.zip core-4e923fb5a293ce570974e620b87ff84ccb6a139b.tar.gz | |
fdo#53280: Reset read-only UI after successful Save As
Change-Id: Ica9214d3655df27bbb259c463a7589a842f01c47
| -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 6a25743..1bd9c9c 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(); |
