From e243aa7dd965c9ce48e08d9a7d523e7e9ce21110 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Fri, 23 Jun 2017 10:47:00 +0200 Subject: [PATCH] feat(App): display an error box if qt version is lower than 5.8.0 --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index fc33bed73..62de1b487 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,6 +22,7 @@ #include #include +#include #include #include "gitversion.h" @@ -31,6 +32,7 @@ // Must be unique. Used by `SingleApplication` and `Paths`. #define APPLICATION_NAME "linphone" #define APPLICATION_VERSION LINPHONE_QT_GIT_VERSION +#define APPLICATION_MINIMAL_QT_VERSION "5.8.0" #define DEFAULT_FONT "Noto Sans" @@ -39,6 +41,8 @@ using namespace std; // ============================================================================= int main (int argc, char *argv[]) { + QT_REQUIRE_VERSION(argc, argv, APPLICATION_MINIMAL_QT_VERSION); + // Disable QML cache. Avoid malformed cache. qputenv("QML_DISABLE_DISK_CACHE", "true");