[PATCH 3 of 4] (issue148) Only update list widgets when something new is available
Wald Commits
scm-commit at wald.intevation.org
Wed Sep 24 15:51:20 CEST 2014
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1411566538 -7200
# Node ID f7e890c4dac6aaee3c018931c031789526cf2b43
# Parent dc1941e043730594c34160d051dc5e304b9840e7
(issue148) Only update list widgets when something new is available.
diff -r dc1941e04373 -r f7e890c4dac6 ui/mainwindow.cpp
--- a/ui/mainwindow.cpp Wed Sep 24 15:48:34 2014 +0200
+++ b/ui/mainwindow.cpp Wed Sep 24 15:48:58 2014 +0200
@@ -266,7 +266,14 @@
}
void MainWindow::handleNewList(const QString& fileName, const QDateTime& modDate) {
- qDebug() << "new list available";
+
+ if (mSettings.value("List/available").toString() == fileName &&
+ getState() == NewListAvailable) {
+ qDebug() << "List already handled";
+ return;
+ } else {
+ qDebug() << "Handling list";
+ }
mSettings.setValue("List/available", fileName);
mSettings.setValue("List/availableDate", modDate);
More information about the Trustbridge-commits
mailing list