Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Jul 25, 2024
1 parent 7f9c79f commit cf3b9de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/formmain.pas
Original file line number Diff line number Diff line change
Expand Up @@ -3246,11 +3246,13 @@ procedure TfmMain.AppPropsActivate(Sender: TObject);
F.Editor.Update;
end;

(*
{$if defined(LCLQt5) or defined(LCLQt6)}
//workaround for issue https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40933
if FPrevFindDlgVisible and Assigned(fmFind) and not fmFind.Visible then
fmFind.Show;
{$ifend}
*)

DoPyEvent_AppActivate(TAppPyEvent.OnAppActivate);
end;
Expand All @@ -3275,7 +3277,7 @@ procedure TfmMain.AppPropsDeactivate(Sender: TObject);
//workaround for issue https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40933
FPrevFindDlgVisible:= Assigned(fmFind) and (fmFind.Parent=nil) and fmFind.Visible;
if FPrevFindDlgVisible then
fmFind.Hide;
fmFind.Close;
{$ifend}

DoPyEvent_AppActivate(TAppPyEvent.OnAppDeactivate);
Expand Down

0 comments on commit cf3b9de

Please sign in to comment.