From 0ced96f57848e017d52190139a94bb2c2caeed78 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 22 May 2013 23:48:24 +0100 Subject: Do not close MUC windows on /wins prune closes #172 --- src/ui/core.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/ui/core.c b/src/ui/core.c index 1b6c8790..f4d95abe 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -665,12 +665,15 @@ ui_prune_wins(void) gboolean pruned = FALSE; for (curr = 1; curr <= 9; curr++) { - if (ui_win_exists(curr) && (ui_win_unread(curr) == 0)) { - if (conn_status == JABBER_CONNECTED) { - ui_close_connected_win(curr); + if (ui_win_exists(curr)) { + win_type_t win_type = windows[curr]->type; + if ((ui_win_unread(curr) == 0) && (win_type != WIN_MUC)) { + if (conn_status == JABBER_CONNECTED) { + ui_close_connected_win(curr); + } + ui_close_win(curr); + pruned = TRUE; } - ui_close_win(curr); - pruned = TRUE; } } -- cgit 1.4.1-2-gfad0 /aerc/refs/?h=0.4.0&id=d44bdc9fb99463081fa622589f7432191dd8b30d'>refs log blame commit diff stats
path: root/lib/open.go
blob: ad6533e1d35f13e6b61e24ac203e17122309384a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12