Mercurial > trustbridge
comparison ui/mainwindow.cpp @ 1232:f7e890c4dac6
(issue148) Only update list widgets when something new is available.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 24 Sep 2014 15:48:58 +0200 |
parents | dc1941e04373 |
children | 7da9ec20eae4 |
comparison
equal
deleted
inserted
replaced
1231:dc1941e04373 | 1232:f7e890c4dac6 |
---|---|
264 handleLTE(lteInvalidSoftware, true); /* Reset error state */ | 264 handleLTE(lteInvalidSoftware, true); /* Reset error state */ |
265 fclose(verifyResult.fptr); | 265 fclose(verifyResult.fptr); |
266 } | 266 } |
267 | 267 |
268 void MainWindow::handleNewList(const QString& fileName, const QDateTime& modDate) { | 268 void MainWindow::handleNewList(const QString& fileName, const QDateTime& modDate) { |
269 qDebug() << "new list available"; | 269 |
270 if (mSettings.value("List/available").toString() == fileName && | |
271 getState() == NewListAvailable) { | |
272 qDebug() << "List already handled"; | |
273 return; | |
274 } else { | |
275 qDebug() << "Handling list"; | |
276 } | |
270 mSettings.setValue("List/available", fileName); | 277 mSettings.setValue("List/available", fileName); |
271 mSettings.setValue("List/availableDate", modDate); | 278 mSettings.setValue("List/availableDate", modDate); |
272 | 279 |
273 verifyListData(); | 280 verifyListData(); |
274 if (!mListToInstall.isValid()) { | 281 if (!mListToInstall.isValid()) { |