mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 10:39:15 +02:00
IDE: mark new project as not modified on errors
git-svn-id: trunk@26724 -
This commit is contained in:
parent
db08d1db24
commit
7c57556d5f
@ -9640,12 +9640,15 @@ begin
|
||||
Project1.EndUpdate;
|
||||
end;
|
||||
|
||||
Result:=mrOk;
|
||||
finally
|
||||
//SrcEdit:=SourceEditorManager.act
|
||||
//Project1.UpdateVisibleUnit(SourceEditorManager);
|
||||
// set all modified to false
|
||||
for i:=0 to Project1.UnitCount-1 do
|
||||
Project1.Units[i].ClearModifieds;
|
||||
Project1.Modified:=false;
|
||||
Result:=mrOk;
|
||||
finally
|
||||
debugln(['TMainIDE.DoNewProject AAA1 ',SomethingOfProjectIsModified]);
|
||||
// call handlers
|
||||
HandlerResult:=DoCallProjectChangedHandler(lihtProjectOpened,Project1);
|
||||
if not (HandlerResult in [mrOk,mrCancel,mrAbort]) then
|
||||
|
@ -3348,7 +3348,8 @@ begin
|
||||
Result:=AnUnitInfo;
|
||||
end;
|
||||
|
||||
procedure TProject.UpdateVisibleUnit(AnEditor: TSourceEditorInterface; AWindowIndex: Integer);
|
||||
procedure TProject.UpdateVisibleUnit(AnEditor: TSourceEditorInterface;
|
||||
AWindowIndex: Integer);
|
||||
var
|
||||
i: Integer;
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user