From 13769dea65137fc3c537de6257d15cb87b51f8ae Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 27 May 2020 17:11:34 +0100 Subject: Related: tdf#133411 SetDocWin is using the previous search success state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit not the new state The order of calls probably didn't matter in the past where the use of the flag was deferred until the Accessibility data was queried which would happen in another event loop. This makes it more clear that it appears that only calc actually does anything productive here. I think this flow-to has created more trouble that its worth and I'll remove it but if we need to restore it, then this, I think, it the working state to restore to. Change-Id: Id6fbb483c081f6d5142100d70c1b29705dcb6452 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95005 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- include/svx/srchdlg.hxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/svx') diff --git a/include/svx/srchdlg.hxx b/include/svx/srchdlg.hxx index 5c27e2de9e79..593d54487964 100644 --- a/include/svx/srchdlg.hxx +++ b/include/svx/srchdlg.hxx @@ -128,16 +128,12 @@ public: TransliterationFlags GetTransliterationFlags() const; - void SetDocWin(vcl::Window* pDocWin, SvxSearchCmd eCommand); - void SetSrchFlag( bool bSuccess ) { mbSuccess = bSuccess; } - bool GetSrchFlag() const { return mbSuccess; } + void SetDocWin(vcl::Window* pDocWin, SvxSearchCmd eCommand, bool bSuccess); void SetSaveToModule(bool b); void SetSearchLabel(const OUString& rStr); private: - bool mbSuccess; - SfxBindings& rBindings; bool bWriter; bool bSearch; -- cgit