From 4f88a84526037ff311f7eda203c6a61e19b63cf7 Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Thu, 24 Dec 2009 13:19:36 +0200 Subject: [PATCH] Ticket #1663: Panels state saves and restores despite disabled 'Auto save setup' Added option 'auto_save_setup_panels' into [Midnight-Commander] section of ini-file. If no specified, value of this option is equal to value of 'auto_save_setup' option. Signed-off-by: Slava Zanko --- src/setup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/setup.c b/src/setup.c index 7b7cee16f..a2f096c82 100644 --- a/src/setup.c +++ b/src/setup.c @@ -332,6 +332,9 @@ save_panel_types (void) { int type; + if (! mc_config_get_int(mc_main_config,CONFIG_APP_SECTION,"auto_save_setup_panels",auto_save_setup)) + return; + type = get_display_type (0); panel_save_type ("New Left Panel", type); if (type == view_listing)