[Pkg-owncloud-commits] [owncloud-client] 369/498: PassiveUpdateNotifier: Fix condition on when to show the update.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:07 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 89b8555aa707789b4a37bdfcc80c0cc47f28f65c
Author: Klaas Freitag <freitag at owncloud.com>
Date: Mon Jul 20 15:33:44 2015 +0200
PassiveUpdateNotifier: Fix condition on when to show the update.
---
src/gui/updater/ocupdater.cpp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp
index 6dd661c..97f8a06 100644
--- a/src/gui/updater/ocupdater.cpp
+++ b/src/gui/updater/ocupdater.cpp
@@ -399,10 +399,11 @@ PassiveUpdateNotifier::PassiveUpdateNotifier(const QUrl &url, QObject *parent)
void PassiveUpdateNotifier::versionInfoArrived(const UpdateInfo &info)
{
+ qint64 currentVer = Helper::currentVersionToInt();
+ qint64 remoteVer = Helper::stringVersionToInt(info.version());
+
if( info.version().isEmpty() ||
- Helper::stringVersionToInt(info.version())
- >= Helper::currentVersionToInt() )
- {
+ currentVer >= remoteVer ) {
qDebug() << "Client is on latest version!";
setDownloadState(UpToDate);
} else {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list