diff options
Diffstat (limited to 'riscos/theme_install.c')
-rw-r--r-- | riscos/theme_install.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/riscos/theme_install.c b/riscos/theme_install.c index 574a380d4..e5d5aafa3 100644 --- a/riscos/theme_install.c +++ b/riscos/theme_install.c @@ -28,7 +28,7 @@ #include "desktop/browser.h" #include "riscos/dialog.h" #include "riscos/gui.h" -#include "riscos/options.h" +#include "desktop/options.h" #include "riscos/theme.h" #include "riscos/wimp.h" #include "riscos/wimp_event.h" @@ -198,7 +198,7 @@ bool ro_gui_theme_install_apply(wimp_w w) /* simply overwrite previous theme versions */ snprintf(theme_save, sizeof theme_save, "%s.%s", - option_theme_save, theme_file); + nsoption_charp(theme_save), theme_file); theme_save[sizeof theme_save - 1] = '\0'; @@ -222,8 +222,7 @@ bool ro_gui_theme_install_apply(wimp_w w) if (!theme_install || !ro_gui_theme_apply(theme_install)) { warn_user("ThemeApplyErr", 0); } else { - free(option_theme); - option_theme = strdup(theme_install->leafname); + nsoption_set_charp(theme, strdup(theme_install->leafname)); } free(theme_file); ro_gui_save_options(); |