From 0a9bebeefc52c53577b4705de147f8d596caa3fd Mon Sep 17 00:00:00 2001 From: vladest Date: Thu, 28 Sep 2017 15:34:56 +0200 Subject: [PATCH 1/2] Added workaround to enable menu bar under Linux --- interface/src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/src/main.cpp b/interface/src/main.cpp index cb90160cfe..33053dd294 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -49,6 +49,10 @@ int main(int argc, const char* argv[]) { CrashReporter crashReporter { BUG_SPLAT_DATABASE, BUG_SPLAT_APPLICATION_NAME, BuildInfo::VERSION }; #endif +#ifdef Q_OS_UNIX + QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar); +#endif + disableQtBearerPoll(); // Fixes wifi ping spikes QElapsedTimer startupTime; From c3225c2c761d52b5ade6a8e361189bc7f1829140 Mon Sep 17 00:00:00 2001 From: vladest Date: Thu, 28 Sep 2017 21:38:03 +0200 Subject: [PATCH 2/2] Make fix precisely for Linux --- interface/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/main.cpp b/interface/src/main.cpp index 33053dd294..5c07bebc23 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -49,7 +49,7 @@ int main(int argc, const char* argv[]) { CrashReporter crashReporter { BUG_SPLAT_DATABASE, BUG_SPLAT_APPLICATION_NAME, BuildInfo::VERSION }; #endif -#ifdef Q_OS_UNIX +#ifdef Q_OS_LINUX QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar); #endif