summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-10-14 11:15:22 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-10-14 11:15:22 +0200
commiteab690aaafcd31dfe9400f51548896aafad29817 (patch)
treef6df0a7c471cf5d616537452c0938fe771076797 /src
parent2a7d572ff19dce2af2cf7c787a38210b519d5ac4 (diff)
downloadweechat-eab690aaafcd31dfe9400f51548896aafad29817.zip
Fix wrong hotlist after upgrade when /upgrade is done with empty hotlist
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-upgrade.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c
index d093bec26..81e177349 100644
--- a/src/core/wee-upgrade.c
+++ b/src/core/wee-upgrade.c
@@ -460,7 +460,10 @@ upgrade_weechat_load ()
upgrade_file = upgrade_file_create (WEECHAT_UPGRADE_FILENAME, 0);
rc = upgrade_file_read (upgrade_file, &upgrade_weechat_read_cb);
-
+
+ if (!hotlist_reset)
+ gui_hotlist_clear ();
+
if (upgrade_set_current_buffer)
gui_window_switch_to_buffer (gui_current_window,
upgrade_set_current_buffer);