mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Only save if there is a curretn_panel
This commit is contained in:
parent
d2b3c007b3
commit
b90751e296
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user