diff --git a/cockatrice/src/interface/palette_editor/palette_editor_dialog.cpp b/cockatrice/src/interface/palette_editor/palette_editor_dialog.cpp index dcbb49644..cd247a18d 100644 --- a/cockatrice/src/interface/palette_editor/palette_editor_dialog.cpp +++ b/cockatrice/src/interface/palette_editor/palette_editor_dialog.cpp @@ -322,8 +322,13 @@ void PaletteEditorDialog::onRevertToDefault() savedConfig[loadedScheme] = def; workingConfig[loadedScheme] = def; - paletteGrid->loadPalette(def); - retranslateUi(); // update button enabled state + + ThemeConfig globalCfg = themeManager->effectiveThemeConfig(themeName); + globalCfg.colorScheme = loadedScheme; + globalCfg.save(userThemeDirPath); + + themeManager->reloadCurrentTheme(); + accept(); } void PaletteEditorDialog::changeEvent(QEvent *e)