Remove 'reverse' checkbox in track info when the track

does not support reverse driving.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10865 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-02-16 05:41:33 +00:00
parent d1540ae903
commit 902ff01d3c
2 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,7 @@
<spacer width="40" height="2" />
<checkbox id="reverse"/>
<spacer width="20" height="2" />
<label height="100%" I18N="Drive the track reverse" text="Reverse"/>
<label id="reverse-text" height="100%" I18N="Drive the track reverse" text="Reverse"/>
</div>
</div>

View File

@ -125,6 +125,8 @@ TrackInfoDialog::TrackInfoDialog(const std::string& ribbonItem, const std::strin
}
else
{
getWidget<CheckBoxWidget>("reverse")->setVisible(false);
getWidget<LabelWidget>("reverse-text")->setVisible(false);
m_checkbox = NULL;
race_manager->setReverseTrack(false);
}