Only save if there is a curretn_panel

This commit is contained in:
Miguel de Icaza 1999-03-27 19:00:18 +00:00
parent d2b3c007b3
commit b90751e296

View File

@ -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 ();