mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 09:53:50 +00:00
Merge remote-tracking branch 'scrawl/master'
This commit is contained in:
commit
0e80b445a9
1 changed files with 1 additions and 2 deletions
|
@ -539,9 +539,8 @@ void WindowManager::messageBox (const std::string& message, const std::vector<st
|
||||||
{
|
{
|
||||||
if(buttons.empty()){
|
if(buttons.empty()){
|
||||||
/* If there are no buttons, and there is a dialogue window open, messagebox goes to the dialogue window */
|
/* If there are no buttons, and there is a dialogue window open, messagebox goes to the dialogue window */
|
||||||
if(std::find(mGuiModes.begin(), mGuiModes.end(), GM_Dialogue) != mGuiModes.end())
|
if(!mGuiModes.empty() && mGuiModes.back() == GM_Dialogue)
|
||||||
mDialogueWindow->addMessageBox(MyGUI::LanguageManager::getInstance().replaceTags(message));
|
mDialogueWindow->addMessageBox(MyGUI::LanguageManager::getInstance().replaceTags(message));
|
||||||
|
|
||||||
else
|
else
|
||||||
mMessageBoxManager->createMessageBox(message);
|
mMessageBoxManager->createMessageBox(message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue