mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-19 20:59:35 +02:00
Merged revision(s) 43735 #8db456be20 from trunk:
IDE: Prevent AV with typing a non-existent file name for Convert Delphi Unit. Issue #25538 ........ git-svn-id: branches/fixes_1_2@43741 -
This commit is contained in:
parent
89840dd72b
commit
c468ca2f32
@ -4504,9 +4504,9 @@ begin
|
||||
try
|
||||
InputHistories.ApplyFileDialogSettings(OpenDialog);
|
||||
OpenDialog.Title:=lisChooseDelphiUnit;
|
||||
OpenDialog.Options:=OpenDialog.Options+[ofPathMustExist,ofFileMustExist,ofAllowMultiSelect];
|
||||
OpenDialog.Filter:=lisDelphiUnit+' (*.pas)|*.pas|'+
|
||||
dlgAllFiles+' ('+GetAllFilesMask+')|' + GetAllFilesMask;
|
||||
OpenDialog.Options:=OpenDialog.Options+[ofAllowMultiSelect];
|
||||
if InputHistories.LastConvertDelphiUnit<>'' then begin
|
||||
OpenDialog.InitialDir:=ExtractFilePath(InputHistories.LastConvertDelphiUnit);
|
||||
OpenDialog.Filename :=ExtractFileName(InputHistories.LastConvertDelphiUnit);
|
||||
@ -4541,6 +4541,7 @@ begin
|
||||
try
|
||||
InputHistories.ApplyFileDialogSettings(OpenDialog);
|
||||
OpenDialog.Title:=lisChooseDelphiProject;
|
||||
OpenDialog.Options:=OpenDialog.Options+[ofPathMustExist,ofFileMustExist];
|
||||
OpenDialog.Filter:=lisDelphiProject+' (*.dpr)|*.dpr|'+
|
||||
lisLazarusProject+' (*.lpr)|*.lpr|'+
|
||||
dlgAllFiles+' ('+GetAllFilesMask+')|' + GetAllFilesMask;
|
||||
@ -4570,6 +4571,7 @@ begin
|
||||
try
|
||||
InputHistories.ApplyFileDialogSettings(OpenDialog);
|
||||
OpenDialog.Title:=lisChooseDelphiPackage;
|
||||
OpenDialog.Options:=OpenDialog.Options+[ofPathMustExist,ofFileMustExist];
|
||||
OpenDialog.Filter:=lisDelphiPackage+' (*.dpk)|*.dpk|'+
|
||||
dlgAllFiles+' ('+GetAllFilesMask+')|' + GetAllFilesMask;
|
||||
if InputHistories.LastConvertDelphiPackage<>'' then begin
|
||||
|
Loading…
Reference in New Issue
Block a user