summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-25 14:39:48 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-25 14:43:45 +0100
commitb34b8d4e6aca90632049aa34a1b2f77de62b2c74 (patch)
tree2da03a374cba818b64cea027e4f38f6bbd51fdcd /gui
parent98e1e649e47e58b35e15988af12e7d9d51d5cab4 (diff)
gui/init: fix Qt 5.5
Diffstat (limited to 'gui')
-rw-r--r--gui/init.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/init.cpp b/gui/init.cpp
index bac8f700..4c3766da 100644
--- a/gui/init.cpp
+++ b/gui/init.cpp
@@ -200,8 +200,10 @@ int otr_main(int argc, char** argv, std::function<QWidget*()> const& make_main_w
{
set_fp_mask();
+#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QCoreApplication::setAttribute(Qt::AA_X11InitThreads, true);
+#endif
+ QCoreApplication::setAttribute(Qt::AA_X11InitThreads);
QApplication app(argc, argv);