Mercurial > trustbridge > trustbridge
diff ui/mainwindow.cpp @ 1394:8d27c6d226cd
Improve debug output for list verification and no installed list
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 23 Jan 2015 15:25:50 +0100 |
parents | 831d28c2291d |
children |
line wrap: on
line diff
--- a/ui/mainwindow.cpp Mon Jan 19 15:45:28 2015 +0100 +++ b/ui/mainwindow.cpp Fri Jan 23 15:25:50 2015 +0100 @@ -234,6 +234,8 @@ if (!mListToInstall.isValid()) { handleLTE(lteInvalidList); mCurState = TransferError; + qDebug() << "Failed to validate certificate list. Removing: " << availableFileName; + qDebug() << "State: " << mListToInstall.getStatus(); QFile::remove(availableFileName); mSettings.remove("List/available"); mSettings.remove("List/availableDate"); @@ -318,13 +320,14 @@ qDebug() << "List already handled"; return; } else { - qDebug() << "Handling list"; + qDebug() << "Handling list: " << fileName << " Date: " << modDate; } mSettings.setValue("List/available", fileName); mSettings.setValue("List/availableDate", modDate); verifyListData(); - if (!mListToInstall.isValid() || mListToInstall.date() <= mInstalledList.date()) { + if (!mListToInstall.isValid() || (mInstalledList.isValid() && + mListToInstall.date() <= mInstalledList.date()) ) { if ( mListToInstall.date() <= mInstalledList.date()) { qDebug() << "Newest list on the server is older then the installed list. "; qDebug() << "Installed: " << mInstalledList.date();