From: David Fuhrmann Date: Fri, 21 Jun 2013 20:37:54 +0000 (+0200) Subject: macosx: CAS: remove duplicated code X-Git-Tag: 2.1.0-git~58 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a734020c2b1846f3c833fdeb15c9485c570a0979;p=vlc macosx: CAS: remove duplicated code --- diff --git a/modules/gui/macosx/ConvertAndSave.m b/modules/gui/macosx/ConvertAndSave.m index d8d3d1cfe0..cc735fd83d 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];