From b34b8d4e6aca90632049aa34a1b2f77de62b2c74 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 25 Dec 2018 14:39:48 +0100 Subject: gui/init: fix Qt 5.5 --- gui/init.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gui') 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 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); -- cgit v1.2.3