1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Fix count on /close all, and /close read

This commit is contained in:
James Booth 2013-08-30 00:21:41 +01:00
parent 00547bd116
commit 48794e324c
2 changed files with 3 additions and 3 deletions

View File

@ -531,7 +531,7 @@ ui_close_all_wins(void)
int curr = 0, count = 0;
jabber_conn_status_t conn_status = jabber_get_connection_status();
for (curr = 1; curr <= 9; curr++) {
for (curr = 2; curr <= 10; curr++) {
if (ui_win_exists(curr)) {
if (conn_status == JABBER_CONNECTED) {
ui_close_connected_win(curr);
@ -550,7 +550,7 @@ ui_close_read_wins(void)
int curr = 0, count = 0;
jabber_conn_status_t conn_status = jabber_get_connection_status();
for (curr = 1; curr <= 9; curr++) {
for (curr = 2; curr <= 10; curr++) {
if (ui_win_exists(curr) && (ui_win_unread(curr) == 0)) {
if (conn_status == JABBER_CONNECTED) {
ui_close_connected_win(curr);
@ -615,7 +615,6 @@ void
ui_close_win(int index)
{
wins_close_by_num(index);
status_bar_inactive(index);
status_bar_active(1);
title_bar_title();

View File

@ -140,6 +140,7 @@ wins_close_by_num(int i)
wins_refresh_current();
}
g_hash_table_remove(windows, GINT_TO_POINTER(i));
status_bar_inactive(i);
}
}