diff options
Diffstat (limited to 'src/ui/chats.c')
-rw-r--r-- | src/ui/chats.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/chats.c b/src/ui/chats.c index 5517541..c2cc2ae 100644 --- a/src/ui/chats.c +++ b/src/ui/chats.c | |||
@@ -68,6 +68,11 @@ chats_event(UI_CHATS_Handle *chats, | |||
68 | chat_open_dialog_event(&(chats->open_dialog), app, key); | 68 | chat_open_dialog_event(&(chats->open_dialog), app, key); |
69 | return; | 69 | return; |
70 | } | 70 | } |
71 | else if (chats->create_dialog.win) | ||
72 | { | ||
73 | lobby_create_dialog_event(&(chats->create_dialog), app, key); | ||
74 | return; | ||
75 | } | ||
71 | else if (chats->enter_dialog.window) | 76 | else if (chats->enter_dialog.window) |
72 | { | 77 | { |
73 | lobby_enter_dialog_event(&(chats->enter_dialog), app, key); | 78 | lobby_enter_dialog_event(&(chats->enter_dialog), app, key); |
@@ -124,6 +129,8 @@ chats_event(UI_CHATS_Handle *chats, | |||
124 | } | 129 | } |
125 | else if (chats->line_selected == count - 3) | 130 | else if (chats->line_selected == count - 3) |
126 | chats->open_dialog.window = &(chats->window); | 131 | chats->open_dialog.window = &(chats->window); |
132 | else if (chats->line_selected == count - 2) | ||
133 | chats->create_dialog.win = &(chats->window); | ||
127 | else if (chats->line_selected == count - 1) | 134 | else if (chats->line_selected == count - 1) |
128 | chats->enter_dialog.window = &(chats->window); | 135 | chats->enter_dialog.window = &(chats->window); |
129 | break; | 136 | break; |
@@ -187,6 +194,11 @@ chats_print(UI_CHATS_Handle *chats, | |||
187 | chat_open_dialog_print(&(chats->open_dialog), app); | 194 | chat_open_dialog_print(&(chats->open_dialog), app); |
188 | return; | 195 | return; |
189 | } | 196 | } |
197 | else if (chats->create_dialog.win) | ||
198 | { | ||
199 | lobby_create_dialog_print(&(chats->create_dialog), app); | ||
200 | return; | ||
201 | } | ||
190 | else if (chats->enter_dialog.window) | 202 | else if (chats->enter_dialog.window) |
191 | { | 203 | { |
192 | lobby_enter_dialog_print(&(chats->enter_dialog), app); | 204 | lobby_enter_dialog_print(&(chats->enter_dialog), app); |