From 5c6df4653aaf3ecb91ad630fcac2c57628069056 Mon Sep 17 00:00:00 2001 From: auria Date: Wed, 24 Feb 2010 23:34:25 +0000 Subject: [PATCH] Make a default selection in track selection screen git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4832 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/states_screens/tracks_screen.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/states_screens/tracks_screen.cpp b/src/states_screens/tracks_screen.cpp index 1915c6ca5..f3c74de46 100644 --- a/src/states_screens/tracks_screen.cpp +++ b/src/states_screens/tracks_screen.cpp @@ -209,7 +209,10 @@ void TracksScreen::init() tracks_widget->addItem(_("Random Track"), "random_track", "/gui/track_random.png", 0, IconButtonWidget::ICON_PATH_TYPE_RELATIVE); - tracks_widget->updateItemDisplay(); + tracks_widget->updateItemDisplay(); + + // FIXME: don't hardcode player 0? + tracks_widget->setSelection(tracks_widget->getItems()[0].m_code_name, 0, true); } // -----------------------------------------------------------------------------------------------