forked from mia/Aegisub
Don't save the file in the 'opened a new file' commit when 'App/Auto/Save on Every Change' is enabled as it's not actually a change
Originally committed to SVN as r6316.
This commit is contained in:
parent
e4b2f1b509
commit
6a091e3ba2
1 changed files with 2 additions and 4 deletions
|
@ -659,10 +659,8 @@ int AssFile::Commit(wxString desc, int type, int amendId, AssEntry *single_line)
|
||||||
UndoStack.pop_front();
|
UndoStack.pop_front();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (OPT_GET("App/Auto/Save on Every Change")->GetBool()) {
|
if (UndoStack.size() > 1 && OPT_GET("App/Auto/Save on Every Change")->GetBool() && !filename.empty() && CanSave())
|
||||||
if (!filename.empty() && CanSave())
|
Save(filename);
|
||||||
Save(filename);
|
|
||||||
}
|
|
||||||
|
|
||||||
AnnounceCommit(type);
|
AnnounceCommit(type);
|
||||||
return commitId;
|
return commitId;
|
||||||
|
|
Loading…
Reference in a new issue