texstudio/texstudio-use-system-qtsingleapplication-instead-of-bundled-on.patch
2019-12-26 11:58:53 +01:00

32 lines
791 B
Diff

From 57ac2462153cb86f149e6509047b8044d60133a6 Mon Sep 17 00:00:00 2001
From: hannes <hannes@fedoraproject.org>
Date: Thu, 26 Dec 2019 11:43:04 +0100
Subject: [PATCH] qtsingle_patch
---
texstudio.pro | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/texstudio.pro b/texstudio.pro
index 87b6d25..88b115d 100644
--- a/texstudio.pro
+++ b/texstudio.pro
@@ -42,7 +42,13 @@ QT += \
}
contains($$list($$[QT_VERSION]), 4.3.*):message("qt 4.3.x")
-else:include(src/qtsingleapplication/qtsingleapplication.pri)
+else: {
+isEmpty(USE_SYSTEM_QTSINGLEAPPLICATION){
+include(qtsingleapplication/qtsingleapplication.pri)
+} else {
+CONFIG += qtsingleapplication
+}
+}
# ##############################
# precompile_header: PRECOMPILED_HEADER = mostQtHeaders.h
--
2.24.1