Skip to content

Commit

Permalink
Added extra pushHistory after save to prevent spurious edit flag sett…
Browse files Browse the repository at this point in the history
…ing.
  • Loading branch information
highperformancecoder committed Nov 18, 2024
1 parent 8c5990d commit cb441e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions model/minsky.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,7 @@ namespace minsky
throw runtime_error("cannot save to "+filename);
throw;
}
pushHistory(); // ensure history is up to date to prevent trivial setting of dirty flag
flags &= ~is_edited;
fileVersion=minskyVersion;
if (autoSaver)
Expand Down

0 comments on commit cb441e6

Please sign in to comment.