Mercurial > sumwars
changeset 2668:06a65e9b19ac gussoundtest
fixes #5: Game is now closed correctly when a game join in network is canceled
author | Stefan Stammberger <some.fusion@gmail.com> |
---|---|
date | Sat, 08 Mar 2014 19:58:40 +0100 |
parents | 2a5dbf14164b |
children | b5d964942c84 |
files | src/gui/networkwindows.cpp |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui/networkwindows.cpp Sat Mar 08 18:34:14 2014 +0100 +++ b/src/gui/networkwindows.cpp Sat Mar 08 19:58:40 2014 +0100 @@ -313,6 +313,7 @@ bool JoinGameWindow::onCancelJoinGame (const CEGUI::EventArgs& evt) { m_document->getGUIState()->m_shown_windows = Document::START_MENU; + m_document->setState(Document::INACTIVE); m_document->setModified(Document::WINDOWS_MODIFIED); return true;