From 888f8d3d8fa123db964ce286bac8e851accdc5db Mon Sep 17 00:00:00 2001 From: Alex Spataru Date: Sun, 2 Jan 2022 12:57:26 -0500 Subject: [PATCH] Disable custom window for Qt < 5.12 --- src/Misc/ThemeManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Misc/ThemeManager.cpp b/src/Misc/ThemeManager.cpp index 5a13ddab..d9e70b6c 100644 --- a/src/Misc/ThemeManager.cpp +++ b/src/Misc/ThemeManager.cpp @@ -41,7 +41,12 @@ Misc::ThemeManager::ThemeManager() { populateThemes(); loadTheme(m_settings.value("themeId", 0).toInt()); + +#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0) + setCustomWindowDecorations(m_settings.value("customWindows", false).toBool()); +#else setCustomWindowDecorations(m_settings.value("customWindows", true).toBool()); +#endif } /**