Correction in highscore showing on Follow The Leader
Calling updateHighScores on every click on the reverse checkbox was a bit optimistic, add a check that there are even highscores to show. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10996 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
17fe035253
commit
48cc8d6044
@ -263,7 +263,10 @@ GUIEngine::EventPropagation TrackInfoDialog::processEvent(const std::string& eve
|
||||
race_manager->setReverseTrack(m_checkbox->getState());
|
||||
// Makes sure the highscores get swapped when clicking the 'reverse'
|
||||
// checkbox.
|
||||
updateHighScores();
|
||||
if (race_manager->modeHasHighscores())
|
||||
{
|
||||
updateHighScores();
|
||||
}
|
||||
}
|
||||
else if (eventSource == "lapcountspinner")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user