summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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