diff --git a/src/app/main.cpp b/src/app/main.cpp index aceb0c1e4..f3c20339e 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -235,7 +235,7 @@ int main(int argc, char *argv[]) // 3. https://bugreports.qt.io/browse/QTBUG-46015 qputenv("QT_BEARER_POLL_TIMEOUT", QByteArray::number(-1)); -#if !defined(DISABLE_GUI) +#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && !defined(DISABLE_GUI) // this is the default in Qt6 app->setAttribute(Qt::AA_DisableWindowContextHelpButton); #endif