mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 05:36:10 +02:00
IDE: open LPI dialog - cancel opening on ESC.
git-svn-id: trunk@54078 -
This commit is contained in:
parent
94630704fa
commit
883293a51a
@ -1095,15 +1095,19 @@ begin
|
||||
// either this is a lazarus project or it is not yet a lazarus project ;)
|
||||
LPIFilename:=ChangeFileExt(FFilename,'.lpi');
|
||||
if FileExistsCached(LPIFilename) then begin
|
||||
if IDEQuestionDialog(lisProjectInfoFileDetected,
|
||||
case IDEQuestionDialog(lisProjectInfoFileDetected,
|
||||
Format(lisTheFileSeemsToBeTheProgramFileOfAnExistingLazarusP,
|
||||
[FFilename]), mtConfirmation,
|
||||
[mrOk, lisOpenProject2, mrCancel, lisOpenTheFileAsNormalSource])=mrOk then
|
||||
begin
|
||||
Result:=MainIDE.DoOpenProjectFile(LPIFilename,[ofAddToRecent]);
|
||||
if Result = mrOK then
|
||||
Result := mrIgnore;
|
||||
exit;
|
||||
[mrOk, lisOpenProject2, mrAbort, lisOpenTheFileAsNormalSource])
|
||||
of
|
||||
mrOk:
|
||||
begin
|
||||
Result:=MainIDE.DoOpenProjectFile(LPIFilename,[ofAddToRecent]);
|
||||
if Result = mrOK then
|
||||
Result := mrIgnore;
|
||||
exit;
|
||||
end;
|
||||
mrCancel: Exit;
|
||||
end;
|
||||
end else begin
|
||||
AText:=Format(lisTheFileSeemsToBeAProgramCloseCurrentProject,
|
||||
|
Loading…
Reference in New Issue
Block a user