Skip to content
This repository
Browse code

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 September 14, 2013
11  xbmc/settings/dialogs/GUIDialogSettings.cpp
@@ -599,6 +599,8 @@ void CGUIDialogSettings::AddSpin(unsigned int id, int label, int *current, vecto
599 599
   setting.type = SettingInfo::SPIN;
600 600
   setting.data = current;
601 601
   setting.entry = values;
  602
+  if (values.size() <= 1)
  603
+    setting.enabled = false;
602 604
   m_settings.push_back(setting);
603 605
 }
604 606
 
@@ -664,6 +666,15 @@ void CGUIDialogSettings::OnInitWindow()
664 666
   SetupPage();
665 667
   // set the default focus control
666 668
   m_lastControlID = CONTROL_START;
  669
+
  670
+  for (unsigned int i = 0; i < m_settings.size(); i++)
  671
+  {
  672
+    if (m_settings.at(i).enabled)
  673
+    {
  674
+      m_lastControlID = CONTROL_START + i;
  675
+      break;
  676
+    }
  677
+  }
667 678
   CGUIDialog::OnInitWindow();
668 679
 }
669 680
 

0 notes on commit a3aab2a

Please sign in to comment.
Something went wrong with that request. Please try again.