- edited description
Infinite loop when going back from aspect
Issue #397
resolved
The app locks itself when going back from an aspect without saving after an undone action.
- Open a RAM model
- Make any change to the model.
- Save
- Undo
- Press 'back' and say 'no' to saving
The app loops indefinitely in DisplaySceneHandler.switchToConcern(..):
while (EMFEditUtil.getCommandStack(scene.getAspect()).isSaveNeeded()) {
EMFEditUtil.getCommandStack(scene.getAspect()).undo();
}
This happens because in this case, undoing will not allow us to go back to the previous saved state. In this situation operations should be redone. (I'm not sure redoing is needed though, we just need to check in the loop to be more precise)
Comments (4)
-
reporter -
reporter - edited description
-
reporter - changed status to resolved
Resolves
#397: use goToLastSave() method from CORECommandStackto go back to previsou saved state when leaving an aspect without saving.→ <<cset 6c97d354404c>>
-
-
assigned issue to
-
assigned issue to
- Log in to comment