From: Steve Lhomme Date: Wed, 3 Jul 2024 12:12:17 +0000 (+0200) Subject: qt: hardcode the name of the shortcut for the AMD VQ Enhancer X-Git-Tag: archive/raspbian/3.0.21-7+rpi1^2~115 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fb0b4ce636a630dd6d377bc65b5c407b3d9a0b55;p=vlc.git qt: hardcode the name of the shortcut for the AMD VQ Enhancer Otherwise the name is the same of the DLL which doesn't correspond to the shortcut we need to use. Fixes #28691 Gbp-Pq: Name 0011-qt-hardcode-the-name-of-the-shortcut-for-the-AMD-VQ-.patch --- diff --git a/modules/gui/qt/components/preferences_widgets.cpp b/modules/gui/qt/components/preferences_widgets.cpp index 64121b6d..b634d535 100644 --- a/modules/gui/qt/components/preferences_widgets.cpp +++ b/modules/gui/qt/components/preferences_widgets.cpp @@ -632,9 +632,15 @@ ModuleListConfigControl::~ModuleListConfigControl() void ModuleListConfigControl::checkbox_lists( module_t *p_parser ) { const char *help = module_get_help( p_parser ); - checkbox_lists( qtr( module_GetLongName( p_parser ) ), + const char *module_name = module_GetLongName( p_parser ); + const char *module_shortcut = module_get_object( p_parser ); + + if ( !strcmp(module_name, "AMD VQ Enhancer")) + module_shortcut = "amf_vqenhancer"; + + checkbox_lists( qtr( module_name ), help != NULL ? qtr( help ): "", - module_get_object( p_parser ) ); + module_shortcut ); } void ModuleListConfigControl::checkbox_lists( QString label, QString help, const char* psz_module )