jessaskey/mhedit

If the user selects Cancel on the SaveFileDialog when closing the app it will save the mhc file anyway.

bakerhillpins opened this issue · 4 comments

If the user opts to cancel their save operation when exiting by selecting the Cancel button on the SaveFileDialog it ignores the cancel and saves the file anyway.

So question for you: I've noticed that there are 2 saving algos going on when one exits. The first looks at the dirty flag for the upper level MazeCollection (via MazeCollectionController) and saves the maze if the user says yes. The second looks at each maze (via MazeController) and then prompts the user to save. Issue is that backing code in the 1st test actually tests all the individual mazes for dirty. So end effect is the user will never be prompted to save an individual maze on exit. Thus I can cut out all the code for the individual maze save.

I've got fixes coded up for this and one of the other bugs, I just wanted to understand what your intended user experience on exit was before I committed anything.

Yikes, remind me not to ask questions. I didn't understand that you could have individual mazes not under a collection. That's the part that threw me for a loop. Going to have to see how that works with MAME too.

I'll adjust my changes to hopefully pick all this up.