OCUpdater: Compare to the current version

Fixes #1548
This commit is contained in:
Daniel Molkentin 2014-03-18 00:27:29 +01:00
parent 6377dca4b0
commit eef57032f8

View file

@ -352,7 +352,7 @@ void PassiveUpdateNotifier::versionInfoArrived(const UpdateInfo &info)
{
if( info.version().isEmpty() ||
Helper::stringVersionToInt(info.version())
>= Helper::stringVersionToInt(info.version()))
>= Helper::currentVersionToInt() )
{
qDebug() << "Client is on latest version!";
setDownloadState(UpToDate);