From c7913ddc454dd978c44ccf261eb84a3396e0ed9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Sun, 20 Jan 2013 19:17:26 +0100 Subject: [PATCH] Arbitration: clear the filters when the rack changes, not when a search is performed --- qt/arbitration_widget.cpp | 10 ++++++++-- qt/update_checker.cpp | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/qt/arbitration_widget.cpp b/qt/arbitration_widget.cpp index c3cac28..a15c986 100644 --- a/qt/arbitration_widget.cpp +++ b/qt/arbitration_widget.cpp @@ -436,6 +436,14 @@ void ArbitrationWidget::rackChanged() buttonSearch->setEnabled(acceptableInput); lineEditRack->setPalette(acceptableInput ? blackPalette : redPalette); clearResults(); + + // Clear the filters + lineEditFilterWord->blockSignals(true); + lineEditFilterWord->clear(); + lineEditFilterWord->blockSignals(false); + lineEditFilterPoints->blockSignals(true); + lineEditFilterPoints->clear(); + lineEditFilterPoints->blockSignals(false); } @@ -495,8 +503,6 @@ void ArbitrationWidget::searchResults() { m_game->removeTestRound(); emit notifyInfo(_q("Searching with rack '%1'...").arg(lineEditRack->text())); - lineEditFilterWord->clear(); - lineEditFilterPoints->clear(); m_results.clear(); m_game->arbitrationSearch(m_results); emit notifyInfo(_q("Search done")); diff --git a/qt/update_checker.cpp b/qt/update_checker.cpp index 8b7565c..d011c9e 100644 --- a/qt/update_checker.cpp +++ b/qt/update_checker.cpp @@ -40,7 +40,8 @@ using namespace std; INIT_LOGGER(qt, UpdateChecker); #define SETTING_KEY "Interface/NextUpdateCheck" -#define URL "http://www.nongnu.org/eliot/latest-version" +//#define URL "http://www.nongnu.org/eliot/latest-version" +#define URL "http://localhost/latest-version" UpdateChecker::UpdateChecker(QObject *parent)