[PATCH 2 of 3] (issue44) Also set available information when sw was dowloaded

Wald Commits scm-commit at wald.intevation.org
Mon Sep 29 15:21:00 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1411993343 -7200
# Node ID 87b3886aca699d5d5af5f42fd61e83e3684eff47
# Parent  0eb7232425365619d2eeb35655755472c33b675c
(issue44) Also set available information when sw was dowloaded.

diff -r 0eb723242536 -r 87b3886aca69 ui/mainwindow.cpp
--- 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),


More information about the Trustbridge-commits mailing list