changeset 1292:87b3886aca69

(issue44) Also set available information when sw was dowloaded.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 29 Sep 2014 14:22:23 +0200
parents 0eb723242536
children d2b32c75efcf
files ui/mainwindow.cpp
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ui/mainwindow.cpp	Mon Sep 29 14:14:15 2014 +0200
+++ b/ui/mainwindow.cpp	Mon Sep 29 14:22:23 2014 +0200
@@ -363,6 +363,10 @@
     QFileInfo instProcInfo = QFileInfo(fileName);
     QString filePath = QDir::toNativeSeparators(instProcInfo.absoluteFilePath());
 
+    /* Reset available information. */
+    mSettings.setValue("Software/available", fileName);
+    mSettings.setValue("Software/availableDate", modDate);
+
     /* Copy the file to a temporary name for installation */
     filePath = getPrettyInstallerName(filePath);
 
@@ -567,7 +571,7 @@
 {
     QString softwareVersion = QString::fromLatin1(SW_RESOURCE_VERSION).arg(
         QApplication::applicationVersion());
-    qDebug() << softwareVersion;
+    qDebug() << "Getting last modified date for: " << softwareVersion;
     QString listResource = QString::fromLatin1(LIST_RESOURCE);
     Downloader* downloader = new Downloader(this,
                                             QString::fromLatin1(SERVER_URL),

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