diff --git a/src/gui/config_tab.py b/src/gui/config_tab.py index a4d9f9bb..d29919a7 100644 --- a/src/gui/config_tab.py +++ b/src/gui/config_tab.py @@ -164,7 +164,10 @@ def reset_button_click(self): msg.setText(message) msg.setWindowTitle("Reset to default values?") msg.setStandardButtons(QMessageBox.StandardButton.Ok | QMessageBox.StandardButton.Cancel) - if msg.exec(): + + result = msg.exec() # Store the result of msg.exec() + + if result == QMessageBox.StandardButton.Ok: IniConfigLoader().load(clear=True) self._reset_values_for_model(IniConfigLoader().general, "general") self._reset_values_for_model(IniConfigLoader().char, "char")