From 8603b8ca144440f6267edf260ba640318f1c7f5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 22 Sep 2019 12:27:51 +0200 Subject: [PATCH] Get the latest version number from the code in master --- common/check_new_version.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/common/check_new_version.cpp b/common/check_new_version.cpp index 3f2051d8..574adfdb 100644 --- a/common/check_new_version.cpp +++ b/common/check_new_version.cpp @@ -13,7 +13,7 @@ #define PREVIOUS_VERSION_TESTING "6.0.0" HttpVersionChecker::HttpVersionChecker() - : HttpWorker("https://bitbucket.org/luisangelsm/yacreader/wiki/Home") + : HttpWorker("https://raw.githubusercontent.com/YACReader/yacreader/master/common/yacreader_global.h") { connect(this, SIGNAL(dataReady(const QByteArray &)), this, SLOT(checkNewVersion(const QByteArray &))); } @@ -25,17 +25,7 @@ void HttpVersionChecker::checkNewVersion(const QByteArray &data) bool HttpVersionChecker::checkNewVersion(QString sourceContent) { -#ifdef Q_OS_WIN32 - QRegExp rx("YACReader\\-([0-9]+).([0-9]+).([0-9]+)\\.?([0-9]+)?.{0,5}win32"); -#endif - -#if defined Q_OS_UNIX && !defined Q_OS_MAC - QRegExp rx("YACReader\\-([0-9]+).([0-9]+).([0-9]+)\\.?([0-9]+)?.{0,5}X11"); -#endif - -#ifdef Q_OS_MAC - QRegExp rx("YACReader\\-([0-9]+).([0-9]+).([0-9]+)\\.?([0-9]+)?.{0,5}Mac"); -#endif + QRegExp rx("#define VERSION \"([0-9]+).([0-9]+).([0-9]+)\""); int index = 0; bool newVersion = false;