diff options
author | James Booth <boothj5@gmail.com> | 2015-10-13 20:46:59 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-10-13 20:46:59 +0100 |
commit | ecbcecea7d0e20bd7ff12ead58cc4e735c7ee98b (patch) | |
tree | 9fc913caadabd0d538bf1f76cf40ed1d5d751a62 /src | |
parent | 6e0f73d616178b27d015cdf9c917d16a5590a1b7 (diff) | |
download | profani-tty-ecbcecea7d0e20bd7ff12ead58cc4e735c7ee98b.tar.gz |
Fixed closing room config windows
Diffstat (limited to 'src')
-rw-r--r-- | src/command/commands.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 7df1477a..c34c7cc3 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -2689,12 +2689,15 @@ cmd_form(ProfWin *window, const char * const command, gchar **args) if (confwin->form) { cmd_autocomplete_remove_form_fields(confwin->form); } - wins_close_current(); + + int num = wins_get_num(window); + ProfWin *new_current = (ProfWin*)wins_get_muc(confwin->roomjid); if (!new_current) { new_current = wins_get_console(); } ui_ev_focus_win(new_current); + wins_close_by_num(num); } return TRUE; |