[vlc-commits] macosx: CAS: fix update of customization sheet for last saved profile

David Fuhrmann git at videolan.org
Fri Jun 21 22:43:45 CEST 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | 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]];
 }
 



More information about the vlc-commits mailing list