[vlc-devel] [PATCH 3/5] macosx: fix ModuleConfigControl stringValue
Lyndon Brown
jnqnfe at gmail.com
Thu Sep 24 01:10:23 CEST 2020
From: Lyndon Brown <jnqnfe at gmail.com>
Date: Tue, 9 Apr 2019 04:56:08 +0100
Subject: macosx: fix ModuleConfigControl stringValue
diff --git a/modules/gui/macosx/preferences/prefs_widgets.m b/modules/gui/macosx/preferences/prefs_widgets.m
index 7dffab2899..36859c7014 100644
--- a/modules/gui/macosx/preferences/prefs_widgets.m
+++ b/modules/gui/macosx/preferences/prefs_widgets.m
@@ -1248,7 +1248,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-devel
mailing list