Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3253 from t-nelson/pivos_settings_display_fixes

Pivos settings display fixes
  • Loading branch information...
commit a3aab2aaedaaa60a3eccbbb1d8c4957d156a6f4c 2 parents 555354d + 3aae403
Trent Nelson authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 xbmc/settings/dialogs/GUIDialogSettings.cpp
View
11 xbmc/settings/dialogs/GUIDialogSettings.cpp
@@ -599,6 +599,8 @@ void CGUIDialogSettings::AddSpin(unsigned int id, int label, int *current, vecto
setting.type = SettingInfo::SPIN;
setting.data = current;
setting.entry = values;
+ if (values.size() <= 1)
+ setting.enabled = false;
m_settings.push_back(setting);
}
@@ -664,6 +666,15 @@ void CGUIDialogSettings::OnInitWindow()
SetupPage();
// set the default focus control
m_lastControlID = CONTROL_START;
+
+ for (unsigned int i = 0; i < m_settings.size(); i++)
+ {
+ if (m_settings.at(i).enabled)
+ {
+ m_lastControlID = CONTROL_START + i;
+ break;
+ }
+ }
CGUIDialog::OnInitWindow();
}
Please sign in to comment.
Something went wrong with that request. Please try again.