summaryrefslogtreecommitdiff
path: root/docview
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-07-28 19:16:01 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-07-28 19:16:01 +0200
commitf3c08397a73d26c46d349650f59c274e4c895bd4 (patch)
tree571cdca11be7af8b80a365b5a1b63ad50e5c377a /docview
parent916a1e9e2e1e110b21f51488c5c8de61f5df2938 (diff)
downloadfpGUI-f3c08397a73d26c46d349650f59c274e4c895bd4.tar.xz
docview: call DoSearch directly when search is done via -k or -n parameter.
Diffstat (limited to 'docview')
-rw-r--r--docview/src/frm_main.pas2
1 files changed, 1 insertions, 1 deletions
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