From cc27bb3231e355b147c529695317cf15e84178e1 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Fri, 4 Feb 2022 15:31:49 +0100 Subject: [PATCH] fix(updater): remove Windows version check Qt 5.12 doesn't support anything older than Windows 7 anyway, so we can't really check if we are on an older platform. --- launcher/UpdateController.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/launcher/UpdateController.cpp b/launcher/UpdateController.cpp index c02cd1e7..646f8e57 100644 --- a/launcher/UpdateController.cpp +++ b/launcher/UpdateController.cpp @@ -138,20 +138,6 @@ void UpdateController::installUpdates() } #endif QFileInfo destination (FS::PathCombine(m_root, op.destination)); -#ifdef Q_OS_WIN32 - if(QSysInfo::windowsVersion() < QSysInfo::WV_VISTA) - { - if(destination.fileName() == windowsExeName) - { - QDir rootDir(m_root); - exeOrigin = rootDir.relativeFilePath(op.source); - exePath = rootDir.relativeFilePath(op.destination); - exeBackup = rootDir.relativeFilePath(FS::PathCombine(backupPath, destination.fileName())); - useXPHack = true; - continue; - } - } -#endif if(destination.exists()) { QString backupName = op.destination;