Commit 63b9d0a6 authored by Faustino E. Osuna's avatar Faustino E. Osuna Committed by Jean-Baptiste Kempf

macosx: don't assign NULL as pref button tooltip

Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
(cherry picked from commit bf8c4379)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f242a72f
...@@ -433,7 +433,7 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na ...@@ -433,7 +433,7 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na
- (void)setupButton: (NSButton *)object forBoolValue: (const char *)name - (void)setupButton: (NSButton *)object forBoolValue: (const char *)name
{ {
[object setState: config_GetInt( p_intf, name )]; [object setState: config_GetInt( p_intf, name )];
[object setToolTip: [NSString stringWithUTF8String: config_GetLabel( p_intf, name )]]; [object setToolTip: [NSString stringWithUTF8String: config_GetLabel( p_intf, name ) ?: ""]];
} }
- (void)setupField:(NSTextField *)o_object forOption:(const char *)psz_option - (void)setupField:(NSTextField *)o_object forOption:(const char *)psz_option
......
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