mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-06-16 11:33:33 +00:00
Added check for no clean index
This commit is contained in:
parent
7bc7a7a610
commit
f19e5c1153
@ -677,6 +677,14 @@ void CWorldEditor::OnUndoStackIndexChanged()
|
||||
int CurrentIndex = mUndoStack.index();
|
||||
int CleanIndex = mUndoStack.cleanIndex();
|
||||
|
||||
if (CleanIndex == -1)
|
||||
{
|
||||
if (!isWindowModified())
|
||||
mUndoStack.setClean();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (CurrentIndex == CleanIndex)
|
||||
setWindowModified(false);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user