From ff6f28390aeec0b71f6c7bb07c9e9a1f637cd07f Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Sun, 9 May 2021 05:16:52 +0200 Subject: [PATCH] fix macos update logic (#4337) --- cockatrice/src/releasechannel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/releasechannel.cpp b/cockatrice/src/releasechannel.cpp index 167da66c..0ce28839 100644 --- a/cockatrice/src/releasechannel.cpp +++ b/cockatrice/src/releasechannel.cpp @@ -57,7 +57,7 @@ bool ReleaseChannel::downloadMatchesCurrentOS(const QString &fileName) int sys_min = QSysInfo::productVersion().split(".")[1].toInt(); int rel_maj = match.captured(1).toInt(); int rel_min = match.captured(2).toInt(); - return rel_maj < sys_maj || (rel_maj == sys_maj && rel_min <= rel_min); + return rel_maj < sys_maj || (rel_maj == sys_maj && rel_min <= sys_min); } #elif defined(Q_OS_WIN) bool ReleaseChannel::downloadMatchesCurrentOS(const QString &fileName)