Removed warning when you get out of the help menu after going to page 2 or 3.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2107 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
cosmosninja 2008-05-30 07:11:07 +00:00
parent 18ca45afd4
commit 7da339a058

View File

@ -78,11 +78,13 @@ MenuManager::~MenuManager()
*/
void MenuManager::pushMenu(MenuManagerIDs id)
{
// If there is already an element then this is the one for the menu
// which is still visible. We store its currently selected widget
// therein.
if (m_menu_stack.size())
// If we store the selected widget when we have send the order to change
// the menu but haven't done it, we would change the previous menu, not
// the current menu.
if ( m_menu_stack.size() && m_change_menu != true )
{
m_menu_stack.back().second = widget_manager->getSelectedWgt();
}
// used to suppress select-sound on startup
static bool is_startup = true;