summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-05-19 14:07:51 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-05-19 14:07:51 +0200
commit37a73d834815e6cb7f4e2644e3086f455f2da812 (patch)
tree6e2e16e5db049fe6cca1c96d222e0879d49410a5 /src/core/wee-command.c
parent67f8f7386a0b8e96586b014b376fc0750e8a4940 (diff)
downloadweechat-37a73d834815e6cb7f4e2644e3086f455f2da812.zip
Fix crash with /upgrade (problem when closing buffers)
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 5f1f21c2f..3c6cffb1c 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -3247,6 +3247,8 @@ command_upgrade (void *data, struct t_gui_buffer *buffer,
exec_args[0] = ptr_binary;
exec_args[3] = strdup (weechat_home);
+ weechat_quit = 1;
+
/* save layout, unload plugins, save config, then upgrade */
gui_layout_save_on_exit ();
plugin_end ();