From: <sv...@op...> - 2024-12-15 22:33:22
|
Author: sagamusix Date: Sun Dec 15 23:33:15 2024 New Revision: 22553 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22553 Log: [Fix] Path Config: If Autosave was disabled when the dialog was created, the retention time edit field was still enabled. Modified: trunk/OpenMPT/mptrack/PathConfigDlg.cpp Modified: trunk/OpenMPT/mptrack/PathConfigDlg.cpp ============================================================================== --- trunk/OpenMPT/mptrack/PathConfigDlg.cpp Sat Dec 14 23:01:16 2024 (r22552) +++ trunk/OpenMPT/mptrack/PathConfigDlg.cpp Sun Dec 15 23:33:15 2024 (r22553) @@ -197,13 +197,12 @@ } OnSettingsChanged(); } - return; } void PathConfigDlg::OnAutosaveRetention() { - const BOOL enabled = IsDlgButtonChecked(IDC_CHECK2) ? TRUE : FALSE; + const BOOL enabled = (IsDlgButtonChecked(IDC_AUTOSAVE_ENABLE) && IsDlgButtonChecked(IDC_CHECK2)) ? TRUE : FALSE; GetDlgItem(IDC_EDIT1)->EnableWindow(enabled); GetDlgItem(IDC_SPIN3)->EnableWindow(enabled); } |