[vlc-commits] macosx: fix ModuleConfigControl stringValue

Lyndon Brown git at videolan.org
Sun Nov 15 19:22:26 CET 2020


vlc/vlc-3.0 | branch: master | Lyndon Brown <jnqnfe at gmail.com> | Tue Apr  9 04:56:08 2019 +0100| [478502c69270e451bd17aafa8d4b9beace0532c0] | committer: David Fuhrmann

macosx: fix ModuleConfigControl stringValue

Signed-off-by: Felix Paul Kühne <felix at feepk.net>

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

 modules/gui/macosx/prefs_widgets.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/prefs_widgets.m b/modules/gui/macosx/prefs_widgets.m
index 2190684e2e..5f2bb1bfce 100644
--- a/modules/gui/macosx/prefs_widgets.m
+++ b/modules/gui/macosx/prefs_widgets.m
@@ -1257,7 +1257,7 @@ o_textfield = [[NSSecureTextField alloc] initWithFrame: s_rc];              \
             module_config_t *p_cfg = p_config + i;
             /* Hack: required subcategory is stored in i_min */
             if (p_cfg->i_type == CONFIG_SUBCATEGORY &&
-                p_cfg->value.i == p_cfg->min.i) {
+                p_cfg->value.i == self.p_item->min.i) {
                 NSString *o_description = _NS(module_get_name(p_parser, TRUE));
                 if ([newval isEqualToString: o_description]) {
                     returnval = strdup(module_get_object(p_parser));



More information about the vlc-commits mailing list