mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 19:39:37 +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;
|
Project1.EndUpdate;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Result:=mrOk;
|
||||||
|
finally
|
||||||
|
//SrcEdit:=SourceEditorManager.act
|
||||||
|
//Project1.UpdateVisibleUnit(SourceEditorManager);
|
||||||
// set all modified to false
|
// set all modified to false
|
||||||
for i:=0 to Project1.UnitCount-1 do
|
for i:=0 to Project1.UnitCount-1 do
|
||||||
Project1.Units[i].ClearModifieds;
|
Project1.Units[i].ClearModifieds;
|
||||||
Project1.Modified:=false;
|
Project1.Modified:=false;
|
||||||
Result:=mrOk;
|
debugln(['TMainIDE.DoNewProject AAA1 ',SomethingOfProjectIsModified]);
|
||||||
finally
|
|
||||||
// call handlers
|
// call handlers
|
||||||
HandlerResult:=DoCallProjectChangedHandler(lihtProjectOpened,Project1);
|
HandlerResult:=DoCallProjectChangedHandler(lihtProjectOpened,Project1);
|
||||||
if not (HandlerResult in [mrOk,mrCancel,mrAbort]) then
|
if not (HandlerResult in [mrOk,mrCancel,mrAbort]) then
|
||||||
|
@ -3348,7 +3348,8 @@ begin
|
|||||||
Result:=AnUnitInfo;
|
Result:=AnUnitInfo;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TProject.UpdateVisibleUnit(AnEditor: TSourceEditorInterface; AWindowIndex: Integer);
|
procedure TProject.UpdateVisibleUnit(AnEditor: TSourceEditorInterface;
|
||||||
|
AWindowIndex: Integer);
|
||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user