Clarify usage of use_internal_edit variable
authorAndrew Borodin <aborodin@vmail.ru>
Mon, 14 Jan 2013 13:01:13 +0000 (14 17:01 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Wed, 16 Jan 2013 10:34:34 +0000 (16 14:34 +0400)
...and disable "Use internal edit" checkbox in case of build
without internal editor.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/filemanager/boxes.c
src/setup.c

index 5074a53..db01587 100644 (file)
@@ -502,6 +502,10 @@ configure_box (void)
 
         g_snprintf (time_out, sizeof (time_out), "%d", old_esc_mode_timeout);
 
+#ifndef USE_INTERNAL_EDIT
+        quick_widgets[17].options = W_DISABLED;
+#endif
+
         if (!old_esc_mode)
             quick_widgets[10].options = quick_widgets[11].options = W_DISABLED;
 
index 3002bb8..bbe1f36 100644 (file)
@@ -945,6 +945,10 @@ load_setup (void)
         *int_options[i].opt_addr =
             mc_config_get_int (mc_main_config, CONFIG_APP_SECTION, int_options[i].opt_name,
                                *int_options[i].opt_addr);
+#ifndef USE_INTERNAL_EDIT
+    /* reset forced in case of build without internal editor */
+    use_internal_edit = 0;
+#endif /* USE_INTERNAL_EDIT */
 
     if (option_tab_spacing <= 0)
         option_tab_spacing = DEFAULT_TAB_SPACING;