mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 15:16:12 +00:00
Fixed: Compilation of Ryzom Installer with Qt versions older than 5.6
This commit is contained in:
parent
fdd4bb3b02
commit
13544a4d84
1 changed files with 5 additions and 0 deletions
|
@ -715,8 +715,13 @@ int CConfigFile::compareInstallersVersion() const
|
||||||
|
|
||||||
QString newVersion = QApplication::applicationVersion();
|
QString newVersion = QApplication::applicationVersion();
|
||||||
|
|
||||||
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
|
||||||
QVersionNumber installedVer = QVersionNumber::fromString(installedVersion);
|
QVersionNumber installedVer = QVersionNumber::fromString(installedVersion);
|
||||||
QVersionNumber newVer = QVersionNumber::fromString(newVersion);
|
QVersionNumber newVer = QVersionNumber::fromString(newVersion);
|
||||||
|
#else
|
||||||
|
QString installedVer = installedVersion;
|
||||||
|
QString newVer = newVersion;
|
||||||
|
#endif
|
||||||
|
|
||||||
// same version
|
// same version
|
||||||
if (newVer == installedVer) return 0;
|
if (newVer == installedVer) return 0;
|
||||||
|
|
Loading…
Reference in a new issue