1
0
mirror of https://github.com/MidnightCommander/mc synced 2025-01-13 06:49:22 +03:00

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", save_string ("Dirs", "other_dir",
get_other_type () == view_listing get_other_type () == view_listing
? opanel->cwd : ".", profile); ? opanel->cwd : ".", profile);
WritePrivateProfileString ("Dirs", "current_is_left", if (get_current_panel () != NULL)
get_current_index () == 0 ? "1" : "0", profile); WritePrivateProfileString ("Dirs", "current_is_left",
get_current_index () == 0 ? "1" : "0", profile);
save_hotlist (); save_hotlist ();
save_panelize (); save_panelize ();
save_panel_types (); save_panel_types ();