Fixes bug that causes the selection of the last active widget instead of the first active widget by default.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1307 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
dc22e1268b
commit
f40af93ba4
@ -475,8 +475,11 @@ bool WidgetManager::layout(const WidgetArea POSITION)
|
|||||||
//Always select the first active widget by default
|
//Always select the first active widget by default
|
||||||
for( int i = 0; i < NUM_WIDGETS; ++i )
|
for( int i = 0; i < NUM_WIDGETS; ++i )
|
||||||
{
|
{
|
||||||
if( m_widgets[i].active) m_selected_wgt_token = m_widgets[i].token;
|
if( m_widgets[i].active)
|
||||||
|
{
|
||||||
|
m_selected_wgt_token = m_widgets[i].token;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Cleanups
|
//Cleanups
|
||||||
|
Loading…
x
Reference in New Issue
Block a user