mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Added /SET reuse_unused_windows setting, default is OFF
If window_close_on_part is ON, we don't anymore close the window if we get kicked or connection gets lost. Also don't close DCC chat window if the other side disconnects. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@357 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
234e95ef94
commit
8ea2400269
7 changed files with 30 additions and 10 deletions
|
|
@ -68,7 +68,13 @@ static void signal_query_destroyed(QUERY_REC *query)
|
|||
g_return_if_fail(query != NULL);
|
||||
|
||||
window = window_item_window((WI_ITEM_REC *) query);
|
||||
if (window != NULL) window_remove_item(window, (WI_ITEM_REC *) query);
|
||||
if (window != NULL) {
|
||||
window_remove_item(window, (WI_ITEM_REC *) query);
|
||||
|
||||
if (windows->next != NULL && !query->unwanted &&
|
||||
settings_get_bool("window_close_on_part"))
|
||||
window_destroy(window);
|
||||
}
|
||||
}
|
||||
|
||||
static void signal_window_item_removed(WINDOW_REC *window, WI_ITEM_REC *item)
|
||||
|
|
@ -78,7 +84,7 @@ static void signal_window_item_removed(WINDOW_REC *window, WI_ITEM_REC *item)
|
|||
g_return_if_fail(window != NULL);
|
||||
|
||||
query = irc_item_query(item);
|
||||
if (query != NULL) query_destroy(query);
|
||||
if (query != NULL) query_destroy(query);
|
||||
}
|
||||
|
||||
static void sig_server_connected(IRC_SERVER_REC *server)
|
||||
|
|
@ -169,7 +175,7 @@ static int sig_query_autoclose(void)
|
|||
window = window_item_window((WI_ITEM_REC *) rec);
|
||||
if (window != active_win && rec->new_data == 0 &&
|
||||
now-window->last_line > query_auto_close)
|
||||
query_destroy(rec);
|
||||
query_destroy(rec);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue