Mercurial > trustbridge
diff ui/downloader.cpp @ 458:6fac87cadbd8
Only check for list if now sw is available
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 23 Apr 2014 13:46:03 +0000 |
parents | 20f539866fa8 |
children | 34cc448409ec |
line wrap: on
line diff
--- a/ui/downloader.cpp Wed Apr 23 14:00:38 2014 +0200 +++ b/ui/downloader.cpp Wed Apr 23 13:46:03 2014 +0000 @@ -212,7 +212,6 @@ emit progress(tr("Connected"), 1, -1); remoteModSW = getLastModifiedHeader(mResourceSW); - remoteModList = getLastModifiedHeader(mResourceList); if (!remoteModSW.isValid() || !remoteModList.isValid()) { qDebug() << "Could not parse headers"; @@ -238,7 +237,12 @@ } emit newSoftwareAvailable(fileName, remoteModSW); - } else if (!mLastModList.isValid() || remoteModList > mLastModList) { + return; + } + + remoteModList = getLastModifiedHeader(mResourceList); + + if (!mLastModList.isValid() || remoteModList > mLastModList) { QString dataDirectory = getDataDirectory(); if (dataDirectory.isEmpty()) {