vlc | branch: master | David Fuhrmann <[email protected]> | Fri Jun 
21 22:37:08 2013 +0200| [94e275a73a124db423104e863d88c6a094ab79a5] | committer: 
David Fuhrmann

macosx: CAS: fix update of customization sheet for last saved profile

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=94e275a73a124db423104e863d88c6a094ab79a5
---

 modules/gui/macosx/ConvertAndSave.m |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/ConvertAndSave.m 
b/modules/gui/macosx/ConvertAndSave.m
index 7808686..d8d3d1c 100644
--- a/modules/gui/macosx/ConvertAndSave.m
+++ b/modules/gui/macosx/ConvertAndSave.m
@@ -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]];
 }
 

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to