summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gui/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/main.cpp b/gui/main.cpp
index 3481c534..d929c543 100644
--- a/gui/main.cpp
+++ b/gui/main.cpp
@@ -5,6 +5,7 @@
# include <QCoreApplication>
# include <QFile>
# include <QString>
+# include <QSysInfo>
# include <QtGlobal>
#else
# include <unistd.h>
@@ -27,6 +28,11 @@ using namespace options;
void set_qt_style()
{
+#if defined _WIN32
+ if (QSysInfo::WindowsVersion == QSysInfo::WV_XP)
+ return;
+#endif
+
#if defined(_WIN32) || defined(__APPLE__)
// our layouts on OSX make some control wrongly sized -sh 20160908
{