mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Stamp path at panel destroy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
ba6845f2d6
commit
f920c6cd37
@ -903,12 +903,6 @@ done_mc (void)
|
||||
save_setup (auto_save_setup, panels_options.auto_save_setup);
|
||||
|
||||
vfs_stamp_path (vfs_get_raw_current_dir ());
|
||||
|
||||
if ((current_panel != NULL) && (get_current_type () == view_listing))
|
||||
vfs_stamp_path (current_panel->cwd_vpath);
|
||||
|
||||
if ((other_panel != NULL) && (get_other_type () == view_listing))
|
||||
vfs_stamp_path (other_panel->cwd_vpath);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
@ -3721,6 +3721,7 @@ panel_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *d
|
||||
return panel_execute_cmd (panel, parm);
|
||||
|
||||
case MSG_DESTROY:
|
||||
vfs_stamp_path (panel->cwd_vpath);
|
||||
/* unsubscribe from "history_load" event */
|
||||
mc_event_del (w->owner->event_group, MCEVENT_HISTORY_LOAD, panel_load_history, w);
|
||||
/* unsubscribe from "history_save" event */
|
||||
|
Loading…
Reference in New Issue
Block a user