- Don't save OpenDialog state when closed via Esc or Cancel. This
(the saving of the combobox states) seemed like an odd behavior of
Cancel, and is not mimicked if the dialog was closed by WinMerge's
termination.
/**
* @brief Called when dialog is closed via Cancel.
*
- * Open-dialog is canceled when 'Cancel' button is selected or
- * Esc-key is pressed. Save combobox states, since user may have
- * removed items from them and don't want them to re-appear.
+ * Open-dialog is closed when 'Cancel' button is selected or
+ * Esc-key is pressed. It is *not* called when the program is
+ * terminated, even if the dialog is visible at the time.
*/
void COpenView::OnCancel()
{
- SaveComboboxStates();
AfxGetMainWnd()->PostMessage(WM_COMMAND, ID_FILE_CLOSE);
}