diff ui/mainwindow.cpp @ 1230:05b938021a24

(issue38) A bit debug output for LTE handling.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 24 Sep 2014 15:26:26 +0200
parents a1e990947172
children dc1941e04373
line wrap: on
line diff
--- a/ui/mainwindow.cpp	Wed Sep 24 15:39:02 2014 +0200
+++ b/ui/mainwindow.cpp	Wed Sep 24 15:26:26 2014 +0200
@@ -581,6 +581,7 @@
 void MainWindow::downloaderError(const QString &message, SSLConnection::ErrorCode error)
 {
     syslog_error_printf ("Failed to check for updates: %s", message.toUtf8().constData());
+    qDebug() << "Downloader error: " << error;
     if (error == SSLConnection::InvalidCertificate) {
         handleLTE(lteInvalidCertificate);
     } else {
@@ -1723,6 +1724,7 @@
 void MainWindow::handleLTE(LongTimeErrors lte, bool reset)
 {
     QString settingPrefix;
+ //   qDebug() << "Handle LTE for " << lte << " Reset? : " << reset;
     switch (lte) {
         case lteInvalidSoftware:
             settingPrefix = "LTE/invalidSW";
@@ -1744,7 +1746,7 @@
         /* delete all values and be done */
         mSettings.remove(settingPrefix + "_lastSaved");
         mSettings.remove(settingPrefix + "_count");
-        mSettings.remove(settingPrefix + "_lastMsgShown");
+        mSettings.remove(settingPrefix + "_lastShown");
         return;
     }
 

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