Stamp path at panel destroy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2018-12-16 11:35:35 +03:00
parent ba6845f2d6
commit f920c6cd37
2 changed files with 1 additions and 6 deletions

View File

@ -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);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -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 */