IDE: create TBrowseEditorTabHistoryDialog only when needed

This commit is contained in:
mattias 2022-05-16 15:20:24 +02:00
parent 444f10ecab
commit 46e5442514

View File

@ -7834,7 +7834,9 @@ end;
function TSourceNotebook.GetHistoryDlg: TBrowseEditorTabHistoryDialog;
begin
FHistoryDlg := TBrowseEditorTabHistoryDialog.CreateNew(Self);
if FHistoryDlg=nil then
FHistoryDlg := TBrowseEditorTabHistoryDialog.CreateNew(Self);
Result:=FHistoryDlg;
end;
procedure TSourceNotebook.BeginIncrementalFind;