From 8a5e32c631e1afdb99e4f6b6277ddc85bae80428 Mon Sep 17 00:00:00 2001 From: Koncord Date: Sat, 27 Aug 2016 13:58:06 +0800 Subject: [PATCH] Show the InputBox only if queue is free --- apps/openmw/mwmp/GUIController.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwmp/GUIController.cpp b/apps/openmw/mwmp/GUIController.cpp index 653227e1e..35b00b2ac 100644 --- a/apps/openmw/mwmp/GUIController.cpp +++ b/apps/openmw/mwmp/GUIController.cpp @@ -95,7 +95,6 @@ void mwmp::GUIController::ShowInputBox(const BasePlayer::GUIMessageBox &guiMessa mInputBox = new MWGui::TextInputDialog(); mInputBox->setTextLabel(guiMessageBox.label); mInputBox->eventDone += MyGUI::newDelegate(this, &GUIController::OnInputBoxDone); - mInputBox->setVisible(true); } @@ -161,7 +160,11 @@ void mwmp::GUIController::WM_UpdateVisible(MWGui::GuiMode mode) switch(mode) { case MWGui::GM_TES3MPPipe: + { + if (mInputBox != 0) + mInputBox->setVisible(true); break; + } default: break; }