From e1fc0d22b6c9d7670664c68e0feb8766540bfca5 Mon Sep 17 00:00:00 2001 From: Al12rs Date: Tue, 13 Feb 2018 21:02:56 +0100 Subject: - Fixed a bug that would keep re-activating the "Create files in mod instead of Overwrite" setting in the executable dialog after the user activated it for the first time. Basically it looked in the stored settings to see if there was an entry for that executable to decide if the checkbox was to be enebled but never deleted that entry if the checkbox was then deselected. --- src/editexecutablesdialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/editexecutablesdialog.cpp') diff --git a/src/editexecutablesdialog.cpp b/src/editexecutablesdialog.cpp index 89605016..fde6b397 100644 --- a/src/editexecutablesdialog.cpp +++ b/src/editexecutablesdialog.cpp @@ -115,6 +115,9 @@ void EditExecutablesDialog::saveExecutable() m_Profile->storeSetting("custom_overwrites", ui->titleEdit->text(), ui->newFilesModBox->currentText()); } + else { + m_Profile->removeSetting("custom_overwrites", ui->titleEdit->text()); + } } -- cgit v1.3.1