mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-11 06:27:45 +00:00
Added check for no clean index
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user