unsaved changes lost when cancelling save

Bug #684702 reported by rew
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Wishlist
Unassigned

Bug Description

When you hit "quit" when there are unsaved changes, you get a warning popup.

So you hit "save".

When it asks for the filename, you think: Wait, let's try XYZ. so instead of saving you want to go back. So you hit "cancel".

Hugin now exists without saving. Ooops.

The warning popup also has a cancel. That will cancel the quit and not lose your data. That the "cancel" in the "enter filename" would cancel the save and quit instantly surprised me.

I agree, that in a sense this makes sense, but I can easily imagine that others would be surprised by this too.

Tags: dataloss
rew (r-e-wolff)
tags: added: dataloss
Yuv (yuv)
Changed in hugin:
status: New → Confirmed
Revision history for this message
Impi (imp9000) wrote :

I have solved the problem by adding a new bool variable in the MainFrame
class. This variable is required to determine whether the confirmation
dialog was closed with the Cancel button. The patch is attached.

Revision history for this message
tmodes (tmodes) wrote :

No nagging please. We as developer are automatic notifitied when there are changes to the bug tracker.
Your patch does not work if the saving was not sucessful.
Therefore pushed a simplier solution which should also consider the case that the file could not saved.

Changed in hugin:
status: Confirmed → Fix Committed
Yuv (yuv)
Changed in hugin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.