From f920c6cd376a1d11b7de18556e8bf956748cdffa Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 16 Dec 2018 11:35:35 +0300 Subject: [PATCH] Stamp path at panel destroy. Signed-off-by: Andrew Borodin --- src/filemanager/midnight.c | 6 ------ src/filemanager/panel.c | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/filemanager/midnight.c b/src/filemanager/midnight.c index 93b063474..d22ab9c72 100644 --- a/src/filemanager/midnight.c +++ b/src/filemanager/midnight.c @@ -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); } /* --------------------------------------------------------------------------------------------- */ diff --git a/src/filemanager/panel.c b/src/filemanager/panel.c index 88d4c6059..befab16f9 100644 --- a/src/filemanager/panel.c +++ b/src/filemanager/panel.c @@ -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 */