From 9b10c21f5cad0e2ec27d23c59e65af7141a226f3 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Sun, 3 Feb 2019 00:10:52 +0000 Subject: New upstream version 1.6.1.3 --- FacilityEngine.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'FacilityEngine.cpp') diff --git a/FacilityEngine.cpp b/FacilityEngine.cpp index 8356f05..185492a 100644 --- a/FacilityEngine.cpp +++ b/FacilityEngine.cpp @@ -5,6 +5,7 @@ \licence GPL3, see the file COPYING */ #include "FacilityEngine.h" +#include "ProductKey.h" #if defined (Q_OS_WIN32) #ifndef NOMINMAX @@ -229,15 +230,21 @@ std::string FacilityEngine::simplifiedRemainingTime(const uint32_t &seconds) con /// \brief Return ultimate url, empty is not found or already ultimate std::string FacilityEngine::ultimateUrl() const { - #ifdef ULTRACOPIER_VERSION_ULTIMATE - return std::string(); - #else + if(ProductKey::productKey->isUltimate()) + return std::string(); + else + { #if defined(Q_OS_WIN32) || defined(Q_OS_MAC) - return "http://ultracopier.first-world.info/shop.html"; + return "https://shop.first-world.info/"; #else return std::string(); #endif - #endif + } +} + +bool FacilityEngine::isUltimate() const +{ + return ProductKey::productKey->isUltimate(); } /// \brief Return the software name -- cgit v1.2.3