From bb2ad9fa3ac8e0cbd5077495764871101c120e5f Mon Sep 17 00:00:00 2001 From: Alex Spataru Date: Sun, 2 Nov 2014 20:37:46 -0600 Subject: [PATCH] More bug fixes --- QSimpleUpdater/src/qsimpleupdater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QSimpleUpdater/src/qsimpleupdater.cpp b/QSimpleUpdater/src/qsimpleupdater.cpp index b07d0a9..b94a6b9 100755 --- a/QSimpleUpdater/src/qsimpleupdater.cpp +++ b/QSimpleUpdater/src/qsimpleupdater.cpp @@ -182,7 +182,7 @@ void QSimpleUpdater::checkDownloadedVersion(QNetworkReply *reply) { // Make sure that the number that we are goind to compare // exists in both strings, for example, we will not compare // 1.2.3 and 1.2.3.1 because we would crash the program - if (_download.count() >= i && _installed.count() >= i) { + if (_download.count() - 1 >= i && _installed.count() - 1 >= i) { // The downloaded number is greater than the installed number // in question. So there's a newer version of the application