diff --git a/client/CPlayerInterface.cpp b/client/CPlayerInterface.cpp index ad44404ce..5db827d4b 100644 --- a/client/CPlayerInterface.cpp +++ b/client/CPlayerInterface.cpp @@ -193,11 +193,6 @@ void CPlayerInterface::closeAllDialogs() castleInt->close(); castleInt = nullptr; - - // remove all pending dialogs that do not expect query answer - vstd::erase_if(dialogs, [](const std::shared_ptr & window){ - return window->ID == QueryID::NONE; - }); } void CPlayerInterface::playerEndsTurn(PlayerColor player) @@ -1515,7 +1510,7 @@ void CPlayerInterface::update() return; //if there are any waiting dialogs, show them - if ((CSH->howManyPlayerInterfaces() <= 1 || makingTurn) && !dialogs.empty() && !showingDialog->isBusy()) + if (makingTurn && !dialogs.empty() && !showingDialog->isBusy()) { showingDialog->setBusy(); GH.windows().pushWindow(dialogs.front());