1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Don't autoclose window after part/unquery if there was still some

channels/queries left in window.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@575 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-08-10 11:25:34 +00:00 committed by cras
parent bcd7b636ed
commit d1a25e0fc2
2 changed files with 4 additions and 3 deletions

View File

@ -60,7 +60,8 @@ static void signal_channel_destroyed(CHANNEL_REC *channel)
if (window != NULL) { if (window != NULL) {
window_remove_item(window, (WI_ITEM_REC *) channel); window_remove_item(window, (WI_ITEM_REC *) channel);
if (windows->next != NULL && (!channel->joined || channel->left) && if (window->items == NULL && windows->next != NULL &&
(!channel->joined || channel->left) &&
settings_get_bool("autoclose_windows")) { settings_get_bool("autoclose_windows")) {
window_destroy(window); window_destroy(window);
} }

View File

@ -74,8 +74,8 @@ static void signal_query_destroyed(QUERY_REC *query)
if (window != NULL) { if (window != NULL) {
window_remove_item(window, (WI_ITEM_REC *) query); window_remove_item(window, (WI_ITEM_REC *) query);
if (windows->next != NULL && !query->unwanted && if (window->items == NULL && windows->next != NULL &&
settings_get_bool("autoclose_windows")) !query->unwanted && settings_get_bool("autoclose_windows"))
window_destroy(window); window_destroy(window);
} }
} }