From fad788d3f02564486039886b1de1cbf976776ac3 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 12 Jul 2005 15:56:03 +0000 Subject: Language/Charset autodetection fixes --- ui/librccui.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ui/librccui.c') 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;ioptions[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;ioptions[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)); -- cgit v1.2.3