Explorar o código

FIX: Restore plugin operator in the search templates (fixes #644)

Alexander Koblov %!s(int64=2) %!d(string=hai) anos
pai
achega
61807cc96d
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/frames/fsearchplugin.pas

+ 5 - 1
src/frames/fsearchplugin.pas

@@ -91,7 +91,11 @@ var
   Panel: TPluginPanel;
 begin
   chkUsePlugins.Checked:= SearchTemplate.ContentPlugin;
-  rbAnd.Checked:= SearchTemplate.ContentPluginCombine;
+  if SearchTemplate.ContentPluginCombine then
+    rbAnd.Checked:= True
+  else begin
+    rbOr.Checked:= True;
+  end;
   for I:= pnlTable.ControlCount - 1 downto 0 do pnlTable.Controls[I].Free;
   for I:= Low(SearchTemplate.ContentPlugins) to High(SearchTemplate.ContentPlugins) do
   begin