From b90751e296dd440b6572fd2eed654ffbcf4c2797 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Sat, 27 Mar 1999 19:00:18 +0000 Subject: [PATCH] Only save if there is a curretn_panel --- src/setup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/setup.c b/src/setup.c index fa8e65e69..a97b534c9 100644 --- a/src/setup.c +++ b/src/setup.c @@ -380,8 +380,9 @@ save_setup (void) save_string ("Dirs", "other_dir", get_other_type () == view_listing ? opanel->cwd : ".", profile); - WritePrivateProfileString ("Dirs", "current_is_left", - get_current_index () == 0 ? "1" : "0", profile); + if (get_current_panel () != NULL) + WritePrivateProfileString ("Dirs", "current_is_left", + get_current_index () == 0 ? "1" : "0", profile); save_hotlist (); save_panelize (); save_panel_types ();