From 1b153ad73e618dc1600394ffbd98ad4b8bd918cd Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 16 Aug 2012 17:53:45 +0200 Subject: fdo#53280: Reset read-only UI after successful Save As MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ica9214d3655df27bbb259c463a7589a842f01c47 Signed-off-by: Michael Meeks (cherry picked from commit 9c2588950be1d4b3051586359175b5a643fee880) Signed-off-by: Caolán McNamara --- sfx2/source/doc/objserv.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- cgit v1.2.3