[PATCH 1 of 2] Only check for list if now sw is available

Wald Commits scm-commit at wald.intevation.org
Wed Apr 23 16:05:57 CEST 2014


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1398260763 0
# Node ID 6fac87cadbd88fce26ac6a60b50c4d30c38ae15b
# Parent  c17c1da7108de4d253ccc1acf9bc683071c09e99
Only check for list if now sw is available

diff -r c17c1da7108d -r 6fac87cadbd8 ui/downloader.cpp
--- 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()) {


More information about the Trustbridge-commits mailing list