qt: hardcode the name of the shortcut for the AMD VQ Enhancer
authorSteve Lhomme <robux4@ycbcr.xyz>
Wed, 3 Jul 2024 12:12:17 +0000 (14:12 +0200)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 21 Jan 2025 18:02:47 +0000 (19:02 +0100)
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

modules/gui/qt/components/preferences_widgets.cpp

index 64121b6dc14594cb5c84bd5e1d0a72d913f18183..b634d535421d4dc05b1a1c1e8dcee45c0a2d7d73 100644 (file)
@@ -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 )