diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-06-07 15:46:12 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-06-07 15:46:12 +0200 |
commit | e5bf0a498b9aecd1df0e2388845d82c406336a49 (patch) | |
tree | 7169f6d4f6ea9c35270e8dfe2f39b8bb43332988 /src/core | |
parent | 9c90a31d3579a92a9e3fa37b19ef58676a1aff08 (diff) | |
download | weechat-e5bf0a498b9aecd1df0e2388845d82c406336a49.zip |
Fix crash with config reload and bug with empty key section (no more keys after reload if weechat.conf was deleted) (bug #23514)
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c index de77a7fc1..8642ab33a 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -499,10 +499,10 @@ config_weechat_reload (void *data, struct t_config_file *config_file) /* make C compiler happy */ (void) data; - (void) config_file; /* remove all keys */ gui_keyboard_free_all (&gui_keys, &last_gui_key); + gui_keyboard_default_bindings (); /* remove all bars */ gui_bar_free_all (); @@ -510,7 +510,7 @@ config_weechat_reload (void *data, struct t_config_file *config_file) /* remove all filters */ gui_filter_free_all (); - rc = config_file_reload (weechat_config_file); + rc = config_file_reload (config_file); if (rc == WEECHAT_CONFIG_READ_OK) { |