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 CurrentIndex = mUndoStack.index();
|
||||||
int CleanIndex = mUndoStack.cleanIndex();
|
int CleanIndex = mUndoStack.cleanIndex();
|
||||||
|
|
||||||
|
if (CleanIndex == -1)
|
||||||
|
{
|
||||||
|
if (!isWindowModified())
|
||||||
|
mUndoStack.setClean();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (CurrentIndex == CleanIndex)
|
if (CurrentIndex == CleanIndex)
|
||||||
setWindowModified(false);
|
setWindowModified(false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue