1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-30 11:06:43 +00:00

When dialogue goodbye is forced, allow using either the red link or the goodbye button

Fixes #1373
This commit is contained in:
scrawl 2014-06-01 00:21:14 +02:00
parent 7c9c0830a9
commit dcc0e2d105

View file

@ -271,7 +271,8 @@ namespace MWGui
void DialogueWindow::exit() void DialogueWindow::exit()
{ {
if (!mEnabled || MWBase::Environment::get().getDialogueManager()->isInChoice()) if ((!mEnabled || MWBase::Environment::get().getDialogueManager()->isInChoice())
&& !mGoodbye)
return; return;
MWBase::Environment::get().getDialogueManager()->goodbyeSelected(); MWBase::Environment::get().getDialogueManager()->goodbyeSelected();
} }
@ -517,7 +518,7 @@ namespace MWGui
MyGUI::Button* byeButton; MyGUI::Button* byeButton;
getWidget(byeButton, "ByeButton"); getWidget(byeButton, "ByeButton");
if(MWBase::Environment::get().getDialogueManager()->isInChoice()) { if(MWBase::Environment::get().getDialogueManager()->isInChoice() && !mGoodbye) {
byeButton->setEnabled(false); byeButton->setEnabled(false);
} }
else { else {