diff ui/downloader.cpp @ 459:34cc448409ec

Fix error handling
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 23 Apr 2014 13:47:33 +0000
parents 6fac87cadbd8
children f8bed9008362
line wrap: on
line diff
--- a/ui/downloader.cpp	Wed Apr 23 13:46:03 2014 +0000
+++ b/ui/downloader.cpp	Wed Apr 23 13:47:33 2014 +0000
@@ -213,8 +213,8 @@
 
     remoteModSW = getLastModifiedHeader(mResourceSW);
 
-    if (!remoteModSW.isValid() || !remoteModList.isValid()) {
-        qDebug() << "Could not parse headers";
+    if (!remoteModSW.isValid()) {
+        qDebug() << "Could not parse headers for Software";
         return;
     }
 
@@ -241,6 +241,10 @@
     }
 
     remoteModList = getLastModifiedHeader(mResourceList);
+    if (!remoteModList.isValid()) {
+        qDebug() << "Could not parse headers for List";
+        return;
+    }
 
     if (!mLastModList.isValid() || remoteModList > mLastModList) {
         QString dataDirectory = getDataDirectory();

http://wald.intevation.org/projects/trustbridge/