]> git.sur5r.net Git - minitube/commitdiff
Fixed wrong update notification when offline
authorFlavio Tordini <flavio.tordini@gmail.com>
Mon, 19 Apr 2010 21:45:01 +0000 (23:45 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Mon, 19 Apr 2010 21:45:01 +0000 (23:45 +0200)
src/updatechecker.cpp

index 61f22d7db9d317a4a24c8d145f9aa27157a27984..35c4639dc2b937ea34f22fbde156117337ebda8d 100644 (file)
@@ -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() {