1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Check to make sure button is enabled

This commit is contained in:
scrawl 2017-09-28 17:00:07 +00:00 committed by GitHub
parent 6ec66fa95f
commit 14c9e858c8

View File

@ -348,7 +348,8 @@ namespace MWGui
if (id >= separatorPos)
{
onTopicActivated(topic);
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mGoodbyeButton);
if (mGoodbyeButton->getEnabled())
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mGoodbyeButton);
}
else
{