From: Flavio Tordini Date: Mon, 19 Apr 2010 21:45:01 +0000 (+0200) Subject: Fixed wrong update notification when offline X-Git-Tag: 1.0~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bc7121a1a1bcbe5c42923fb87e26508297af2b1e;p=minitube Fixed wrong update notification when offline --- 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() {