]> git.sesse.net Git - vlc/commitdiff
macosx: CAS: fix update of customization sheet for last saved profile
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Fri, 21 Jun 2013 20:37:08 +0000 (22:37 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Fri, 21 Jun 2013 20:40:43 +0000 (22:40 +0200)
modules/gui/macosx/ConvertAndSave.m

index 780868629f6740582ad802bae424e728be0617d3..d8d3d1cfe0ba11ea7b6270194ebb1037fd5c76aa 100644 (file)
@@ -339,7 +339,8 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
 - (IBAction)switchProfile:(id)sender
 {
     NSUInteger index = [_profile_pop indexOfSelectedItem];
-    if (index < ([self.profileValueList count] - 1))
+    // last index is "custom"
+    if (index <= ([self.profileValueList count] - 1))
         [self resetCustomizationSheetBasedOnProfile:[self.profileValueList objectAtIndex:index]];
 }