Merge pull request #1561 from marcoll/master

Some minor corrections
This commit is contained in:
auriamg 2014-09-23 18:46:30 -04:00
commit a8f6b78524
5 changed files with 7 additions and 6 deletions

View File

@ -497,6 +497,7 @@ void DynamicRibbonWidget::clearItems()
m_items.clear();
m_animated_contents = false;
m_scroll_offset = 0;
GUIEngine::needsUpdate.remove(this);
}
// -----------------------------------------------------------------------------
void DynamicRibbonWidget::elementRemoved()

View File

@ -24,8 +24,7 @@
#include <algorithm>
#include <set>
#include <utility>
#include <sstream>
GrandPrixManager *grand_prix_manager = NULL;

View File

@ -261,6 +261,10 @@ void EditGPScreen::loadList(const int selected)
m_list->setSelectionID(selected);
setSelected(selected);
}
else
{
enableButtons();
}
}
// -----------------------------------------------------------------------------

View File

@ -175,7 +175,7 @@ void GPInfoScreen::init()
// been added or deleted since the last time this screen was shown.
m_group_spinner->clearLabels();
m_group_spinner->addLabel("all");
int index_standard;
int index_standard=0;
const std::vector<std::string>& groups = track_manager->getAllTrackGroups();
for (unsigned int i = 0; i < groups.size(); i++)
{

View File

@ -67,9 +67,6 @@ void TracksScreen::eventCallback(Widget* widget, const std::string& name,
if (selection == "random_track")
{
RibbonWidget* tabs = getWidget<RibbonWidget>("trackgroups");
assert(tabs);
if (m_random_track_list.empty()) return;
std::string track = m_random_track_list.front();