small main menu fix

This commit is contained in:
scrawl 2012-08-11 15:15:09 +02:00
parent 380defa52f
commit 2ebf4721d1

View file

@ -214,8 +214,8 @@ private:
void toggleMainMenu()
{
if (windows.isGuiMode () && windows.getMode () == MWGui::GM_MainMenu)
windows.removeGuiMode (MWGui::GM_MainMenu);
if (windows.isGuiMode () && (windows.getMode () == MWGui::GM_MainMenu || windows.getMode () == MWGui::GM_Settings))
windows.popGuiMode();
else
windows.pushGuiMode (MWGui::GM_MainMenu);
}