1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: add path in message displayed when a config file is updated to a newer version

This commit is contained in:
Sébastien Helleu
2023-09-11 22:49:21 +02:00
parent 58141bde79
commit 1aab82f20b
+4 -3
View File
@@ -3181,6 +3181,7 @@ config_file_parse_version (const char *version)
void
config_file_update_data_read (struct t_config_file *config_file,
const char *filename,
const char *section,
const char *option,
const char *value,
@@ -3206,7 +3207,7 @@ config_file_update_data_read (struct t_config_file *config_file,
"it is not compatible and can not be loaded any more with any "
"older version"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
config_file->filename,
filename,
config_file->version_read,
config_file->version);
*warning_update_displayed = 1;
@@ -3418,7 +3419,7 @@ config_file_read_internal (struct t_config_file *config_file, int reload)
section = string_strndup (ptr_line + 1, pos - ptr_line - 1);
if (section)
{
config_file_update_data_read (config_file,
config_file_update_data_read (config_file, filename,
section, NULL, NULL,
&section, NULL, NULL,
&warning_update_displayed);
@@ -3536,7 +3537,7 @@ config_file_read_internal (struct t_config_file *config_file, int reload)
goto end_line;
}
config_file_update_data_read (config_file,
config_file_update_data_read (config_file, filename,
ptr_section->name, option, value,
NULL, &option, &value,
&warning_update_displayed);