Commit 3870cf32 authored by David Fuhrmann's avatar David Fuhrmann Committed by Jean-Baptiste Kempf

macosx: extensions: Allow multiple entries with same name in popup menu

(cherry picked from commit e2270a4406d62503db4a6c825f123a3f89952d42)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1798c312
...@@ -203,7 +203,8 @@ static void updateControlFromWidget(NSView *control, extension_widget_t *widget, ...@@ -203,7 +203,8 @@ static void updateControlFromWidget(NSView *control, extension_widget_t *widget,
[popup removeAllItems]; [popup removeAllItems];
struct extension_widget_value_t *value; struct extension_widget_value_t *value;
for (value = widget->p_values; value != NULL; value = value->p_next) for (value = widget->p_values; value != NULL; value = value->p_next)
[popup addItemWithTitle:[NSString stringWithUTF8String:value->psz_text]]; [[popup menu] addItemWithTitle:toNSStr(value->psz_text) action:nil keyEquivalent:@""];
[popup synchronizeTitleAndSelectedItem]; [popup synchronizeTitleAndSelectedItem];
[self popUpSelectionChanged:popup]; [self popUpSelectionChanged:popup];
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment