mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04: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:
parent
bcd7b636ed
commit
d1a25e0fc2
@ -60,7 +60,8 @@ static void signal_channel_destroyed(CHANNEL_REC *channel)
|
||||
if (window != NULL) {
|
||||
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")) {
|
||||
window_destroy(window);
|
||||
}
|
||||
|
@ -74,8 +74,8 @@ static void signal_query_destroyed(QUERY_REC *query)
|
||||
if (window != NULL) {
|
||||
window_remove_item(window, (WI_ITEM_REC *) query);
|
||||
|
||||
if (windows->next != NULL && !query->unwanted &&
|
||||
settings_get_bool("autoclose_windows"))
|
||||
if (window->items == NULL && windows->next != NULL &&
|
||||
!query->unwanted && settings_get_bool("autoclose_windows"))
|
||||
window_destroy(window);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user