mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 11:18:22 +02:00
IDE: Fix saving a program with a dotted name. Issue #40760.
This commit is contained in:
parent
b060a7330f
commit
9ad00fb5a7
@ -8119,10 +8119,8 @@ begin
|
||||
if AFilename = '' then
|
||||
AFilename := 'Project1';
|
||||
// Filename extension
|
||||
Assert((ExtractFileExt(AFilename)='') or FilenameIsPascalSource(AFilename),
|
||||
'ShowSaveProjectAsDialog: '+AFilename+' is not Pascal source.');
|
||||
Ext := '.lpi';
|
||||
AFilename := ChangeFileExt(AFilename, Ext);
|
||||
AFilename := AFilename + Ext;
|
||||
|
||||
SaveDialog := IDESaveDialogClass.Create(nil);
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user