Skip to content
This repository
Browse code

fix saving of option=int slider add-on settings

  • Loading branch information...
commit 022591042f37eb8bb531ef731b883cdf7b36427a 1 parent fbc641f
authored January 31, 2013

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. 8  xbmc/addons/GUIDialogAddonSettings.cpp
8  xbmc/addons/GUIDialogAddonSettings.cpp
@@ -523,7 +523,13 @@ void CGUIDialogAddonSettings::UpdateFromControls()
523 523
             value.Format("%i", ((CGUISpinControlEx*) control)->GetValue());
524 524
           break;
525 525
         case CGUIControl::GUICONTROL_SETTINGS_SLIDER:
526  
-          value.Format("%f", ((CGUISettingsSliderControl *)control)->GetFloatValue());
  526
+          {
  527
+            CStdString option = setting->Attribute("option");
  528
+            if (option.size() == 0 || option.CompareNoCase("float") == 0)
  529
+              value.Format("%f", ((CGUISettingsSliderControl *)control)->GetFloatValue());
  530
+            else
  531
+              value.Format("%i", ((CGUISettingsSliderControl *)control)->GetIntValue());
  532
+          }
527 533
           break;
528 534
         default:
529 535
           break;

0 notes on commit 0225910

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