From ef90859a8f2f42aee3b003c7279d3f6e33216c22 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Wed, 13 Nov 2013 13:46:58 +0400 Subject: [PATCH] Ticket #3096: clarify "Setup saved to ~/.config/mc/ini" message. The "Options -> Save setup" menu entry tells me "Setup saved to ~/.config/mc/ini". This information is misleading, since this is not the only file written, e.g. panels.ini is also updated. Now this message contains the directory only: "Setup saved to ~/.config/mc". Signed-off-by: Andrew Borodin --- src/filemanager/cmd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/filemanager/cmd.c b/src/filemanager/cmd.c index 29e66a058..e5cf8ee7c 100644 --- a/src/filemanager/cmd.c +++ b/src/filemanager/cmd.c @@ -1702,17 +1702,17 @@ void save_setup_cmd (void) { vfs_path_t *vpath; - char *path; + const char *path; - vpath = mc_config_get_full_vpath (MC_CONFIG_FILE); - path = vfs_path_to_str_flags (vpath, 0, VPF_STRIP_HOME); - vfs_path_free (vpath); + vpath = vfs_path_from_str_flags (mc_config_get_path (), VPF_STRIP_HOME); + path = vfs_path_as_str (vpath); if (save_setup (TRUE, TRUE)) message (D_NORMAL, _("Setup"), _("Setup saved to %s"), path); else message (D_ERROR, _("Setup"), _("Unable to save setup to %s"), path); - g_free (path); + + vfs_path_free (vpath); } /* --------------------------------------------------------------------------------------------- */