Fix double sending of chat messages
authorsapier <Sapier at GMX dot net>
Sun, 23 Mar 2014 18:15:38 +0000 (19:15 +0100)
committersapier <Sapier at GMX dot net>
Sun, 23 Mar 2014 18:15:38 +0000 (19:15 +0100)
src/guiFormSpecMenu.cpp

index 4751978d7d3c63bead655a24e8bd7cd20a2839e7..3f9d7f78c4b2abaf5a4f0202967795cfa128bab9 100644 (file)
@@ -2702,7 +2702,6 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
                                                (s.fid == event.GUIEvent.Caller->getID()))
                                {
                                        s.send = true;
-                                       acceptInput();
                                        if(s.is_exit){
                                                if (m_allowclose) {
                                                        acceptInput(quit_mode_accept);
@@ -2712,6 +2711,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
                                                }
                                                return true;
                                        }else{
+                                               acceptInput();
                                                s.send = false;
                                                return true;
                                        }