From 66b7eb2cb61ea408d494c94128bb9a08c374ffba Mon Sep 17 00:00:00 2001 From: mattias Date: Mon, 21 Jun 2010 12:31:01 +0000 Subject: [PATCH] IDE: show searchresultsview with or withotu focus git-svn-id: trunk@26237 - --- ide/main.pp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ide/main.pp b/ide/main.pp index 1371c7b23b..d21e35adab 100644 --- a/ide/main.pp +++ b/ide/main.pp @@ -1014,7 +1014,7 @@ type // search results function DoJumpToSearchResult(FocusEditor: boolean): boolean; - procedure DoShowSearchResultsView(Show: boolean); + procedure DoShowSearchResultsView(Show, BringToFront: boolean); // form editor and designer procedure DoBringToFrontFormOrUnit; @@ -9019,7 +9019,7 @@ begin end else if ItIs(NonModalIDEWindowNames[nmiwSearchResultsViewName]) then begin - DoShowSearchResultsView(false); + DoShowSearchResultsView(false,false); AForm:=SearchResultsView; end else if ItIs(NonModalIDEWindowNames[nmiwAnchorEditor]) then @@ -12685,7 +12685,7 @@ begin SourceEditorManager.ShowActiveWindowOnTop(False); end; -procedure TMainIDE.DoShowSearchResultsView(Show: boolean); +procedure TMainIDE.DoShowSearchResultsView(Show, BringToFront: boolean); begin //set the event here for the selectionchanged event if not assigned(SearchresultsView.OnSelectionChanged) then @@ -12693,10 +12693,9 @@ begin if Show and (not SearchResultsView.IsVisible) then begin - IDEWindowCreators.ShowForm(SearchResultsView,true); - if IDEDockMaster=nil then - // the sourcenotebook is more interesting than the search results - SourceEditorManager.ShowActiveWindowOnTop(False); + IDEWindowCreators.ShowForm(SearchResultsView,BringToFront); + // the sourcenotebook is more interesting than the search results + SourceEditorManager.ShowActiveWindowOnTop(False); end; end;