From f3c08397a73d26c46d349650f59c274e4c895bd4 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Thu, 28 Jul 2011 19:16:01 +0200 Subject: docview: call DoSearch directly when search is done via -k or -n parameter. --- docview/src/frm_main.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docview') diff --git a/docview/src/frm_main.pas b/docview/src/frm_main.pas index 20e92411..357b5f6d 100644 --- a/docview/src/frm_main.pas +++ b/docview/src/frm_main.pas @@ -3366,7 +3366,7 @@ begin { Search for a string } edSearchText.Text := gCommandLineParams.GetParam('k'); PageControl1.ActivePage := tsSearch; - btnSearch.Click; + DoSearch; end else if gCommandLineParams.IsParam('n') then begin -- cgit v1.2.3-70-g09d2