diff ui/downloader.cpp @ 460:f8bed9008362

Added switch to download new available software.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 23 Apr 2014 16:34:41 +0200
parents 34cc448409ec
children 5834b340c54c
line wrap: on
line diff
--- a/ui/downloader.cpp	Wed Apr 23 13:47:33 2014 +0000
+++ b/ui/downloader.cpp	Wed Apr 23 16:34:41 2014 +0200
@@ -34,12 +34,14 @@
                        const QDateTime& newestSW,
                        const QDateTime& newestList,
                        const QString& resourceSW,
-                       const QString& resourceList):
+                       const QString& resourceList,
+                       bool downloadSW):
     QThread(parent),
     mLastModSW(newestSW),
     mLastModList(newestList),
     mResourceSW(resourceSW),
     mResourceList(resourceList),
+    mDownloadSW(downloadSW),
     mSSLConnection(url, certificate)
 {
 }
@@ -232,8 +234,10 @@
 
         qDebug() << "fileName: " << fileName;
 
-        if (!downloadFile(mResourceSW, fileName, MAX_SW_SIZE)) {
-            return;
+        if (mDownloadSW) {
+            if (!downloadFile(mResourceSW, fileName, MAX_SW_SIZE)) {
+                return;
+            }
         }
 
         emit newSoftwareAvailable(fileName, remoteModSW);

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