mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-16 14:25:02 -05:00
Fix #206
This commit is contained in:
parent
9517c35814
commit
02b7623e34
@ -314,10 +314,12 @@ begin
|
|||||||
ecUndo : begin
|
ecUndo : begin
|
||||||
Command:= ecNone;
|
Command:= ecNone;
|
||||||
Self.Undo;
|
Self.Undo;
|
||||||
|
Self.ScriptChanged:=True;
|
||||||
end;
|
end;
|
||||||
ecRedo : begin
|
ecRedo : begin
|
||||||
Command := ecNone;
|
Command := ecNone;
|
||||||
self.Redo;
|
self.Redo;
|
||||||
|
Self.ScriptChanged:=True;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
@ -2954,6 +2954,11 @@ end;
|
|||||||
|
|
||||||
function TSimbaForm.SaveCurrentScript: boolean;
|
function TSimbaForm.SaveCurrentScript: boolean;
|
||||||
begin
|
begin
|
||||||
|
if not CurrScript.ScriptChanged then
|
||||||
|
begin
|
||||||
|
writeln('SaveScript - no changes.');
|
||||||
|
exit(false);
|
||||||
|
end;
|
||||||
with CurrScript do
|
with CurrScript do
|
||||||
begin
|
begin
|
||||||
Result := (ScriptFile <> '');
|
Result := (ScriptFile <> '');
|
||||||
|
Loading…
Reference in New Issue
Block a user