1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 15:53:12 +02:00

Remove argument "switch_to_another" for function gui_buffer_close()

This commit is contained in:
Sebastien Helleu
2008-11-27 17:05:59 +01:00
parent aa77b482ad
commit 3c51c0e7c4
19 changed files with 34 additions and 59 deletions
+2 -2
View File
@@ -1198,7 +1198,7 @@ gui_buffer_clear_all ()
*/
void
gui_buffer_close (struct t_gui_buffer *buffer, int switch_to_another)
gui_buffer_close (struct t_gui_buffer *buffer)
{
struct t_gui_window *ptr_window;
struct t_gui_buffer *ptr_buffer;
@@ -1211,7 +1211,7 @@ gui_buffer_close (struct t_gui_buffer *buffer, int switch_to_another)
(void)(buffer->close_callback) (buffer->close_callback_data, buffer);
}
if (switch_to_another)
if (!weechat_quit)
{
for (ptr_window = gui_windows; ptr_window;
ptr_window = ptr_window->next_window)