From bc7121a1a1bcbe5c42923fb87e26508297af2b1e Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Mon, 19 Apr 2010 23:45:01 +0200 Subject: [PATCH] Fixed wrong update notification when offline --- src/updatechecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/updatechecker.cpp b/src/updatechecker.cpp index 61f22d7..35c4639 100644 --- a/src/updatechecker.cpp +++ b/src/updatechecker.cpp @@ -24,7 +24,7 @@ void UpdateChecker::requestFinished(QByteArray data) { reader.read(data); m_needUpdate = reader.needUpdate(); m_remoteVersion = reader.remoteVersion(); - if (m_needUpdate) emit newVersion(m_remoteVersion); + if (m_needUpdate && !m_remoteVersion.isEmpty()) emit newVersion(m_remoteVersion); } QString UpdateChecker::remoteVersion() { -- 2.39.5