Properly revert FormatSpec changes on "cancel"

Previously the ExportFormatDialog saved changes to disk on "save" but
did nothing on "cancel". The format changed *remained* modified in
memory, just not saved (until the ExportProfileManager is re-instantiated)
This commit is contained in:
Robin Gareus 2018-11-21 23:21:13 +01:00
parent 9326ced760
commit 555dcd11fd
3 changed files with 5 additions and 0 deletions

View file

@ -159,6 +159,9 @@ ExportFormatSelector::open_edit_dialog (bool new_dialog)
update_format_description ();
FormatEdited (state->format);
CriticalSelectionChanged();
} else {
FormatReverted (state->format);
CriticalSelectionChanged();
}
return response;
}