[vlc-commits] macosx: CAS: remove duplicated code

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:54 2013 +0200| [a734020c2b1846f3c833fdeb15c9485c570a0979] | committer: David Fuhrmann

macosx: CAS: remove duplicated code

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

 modules/gui/macosx/ConvertAndSave.m |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/modules/gui/macosx/ConvertAndSave.m b/modules/gui/macosx/ConvertAndSave.m
index d8d3d1c..cc735fd 100644
--- a/modules/gui/macosx/ConvertAndSave.m
+++ b/modules/gui/macosx/ConvertAndSave.m
@@ -633,13 +633,7 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
         [workArray release];
 
         /* update UI */
-        [_profile_pop removeAllItems];
-        [_profile_pop addItemsWithTitles:self.profileNames];
-        [_profile_pop addItemWithTitle:_NS("Custom")];
-        [[_profile_pop menu] addItem:[NSMenuItem separatorItem]];
-        [_profile_pop addItemWithTitle:_NS("Organize Profiles...")];
-        [[_profile_pop lastItem] setTarget: self];
-        [[_profile_pop lastItem] setAction: @selector(deleteProfileAction:)];
+        [self recreateProfilePopup];
 
         /* update internals */
         [self switchProfile:self];



More information about the vlc-commits mailing list