瀏覽代碼

Merge pull request #9681 from Morph1984/nice-one-qt6

main: Only set AA_DisableWindowContextHelpButton below Qt6
Morph 3 年之前
父節點
當前提交
0a7cdc1981
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/yuzu/main.cpp

+ 3 - 1
src/yuzu/main.cpp

@@ -4455,8 +4455,10 @@ int main(int argc, char* argv[]) {
     }
 #endif
 
-    // Disables the "?" button on all dialogs.
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
+    // Disables the "?" button on all dialogs. Disabled by default on Qt6.
     QCoreApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton);
+#endif
 
     // Enables the core to make the qt created contexts current on std::threads
     QCoreApplication::setAttribute(Qt::AA_DontCheckOpenGLContextThreadAffinity);