summaryrefslogtreecommitdiffstats
path: root/ui/librccui.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2005-07-12 15:56:03 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2005-07-12 15:56:03 +0000
commitfad788d3f02564486039886b1de1cbf976776ac3 (patch)
treefc81add05e45e6de4e2e656fb0f08ed6e292dcf6 /ui/librccui.c
parente598a2372179812389a702b78d5f8537eb6827d9 (diff)
downloadlibrcc-fad788d3f02564486039886b1de1cbf976776ac3.tar.gz
librcc-fad788d3f02564486039886b1de1cbf976776ac3.tar.bz2
librcc-fad788d3f02564486039886b1de1cbf976776ac3.tar.xz
librcc-fad788d3f02564486039886b1de1cbf976776ac3.zip
Language/Charset autodetection fixes
Diffstat (limited to 'ui/librccui.c')
-rw-r--r--ui/librccui.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/librccui.c b/ui/librccui.c
index 9f4dc49..2c7c632 100644
--- a/ui/librccui.c
+++ b/ui/librccui.c
@@ -438,8 +438,11 @@ int rccUiRestore(rcc_ui_context ctx) {
language_id = rccGetSelectedLanguage(rccctx);
rccUiMenuSet(ctx->language, (rcc_ui_id)language_id);
- for (i=0;i<RCC_MAX_OPTIONS;i++)
+ for (i=0;i<RCC_MAX_OPTIONS;i++) {
+ if (rccUiMenuGetType(ctx->options[i]) == RCC_OPTION_TYPE_INVISIBLE) continue;
+
rccUiMenuSet(ctx->options[i], rccGetOption(rccctx, (rcc_option)i));
+ }
return 0;
}
@@ -455,8 +458,10 @@ int rccUiUpdate(rcc_ui_context ctx) {
rccSetLanguage(rccctx, (rcc_language_id)rccUiMenuGet(ctx->language));
- for (i=0;i<RCC_MAX_OPTIONS;i++)
+ for (i=0;i<RCC_MAX_OPTIONS;i++) {
+ if (rccUiMenuGetType(ctx->options[i]) == RCC_OPTION_TYPE_INVISIBLE) continue;
rccSetOption(rccctx, (rcc_option)i, (rcc_option_value)rccUiMenuGet(ctx->options[i]));
+ }
rccSetEngine(rccctx, (rcc_language_id)rccUiMenuGet(ctx->engine));