Arbitration: clear the filters when the rack changes, not when a search is performed

This commit is contained in:
Olivier Teulière 2013-01-20 19:17:26 +01:00
parent b5a473a2af
commit c7913ddc45
2 changed files with 10 additions and 3 deletions

View file

@ -436,6 +436,14 @@ void ArbitrationWidget::rackChanged()
buttonSearch->setEnabled(acceptableInput); buttonSearch->setEnabled(acceptableInput);
lineEditRack->setPalette(acceptableInput ? blackPalette : redPalette); lineEditRack->setPalette(acceptableInput ? blackPalette : redPalette);
clearResults(); 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(); m_game->removeTestRound();
emit notifyInfo(_q("Searching with rack '%1'...").arg(lineEditRack->text())); emit notifyInfo(_q("Searching with rack '%1'...").arg(lineEditRack->text()));
lineEditFilterWord->clear();
lineEditFilterPoints->clear();
m_results.clear(); m_results.clear();
m_game->arbitrationSearch(m_results); m_game->arbitrationSearch(m_results);
emit notifyInfo(_q("Search done")); emit notifyInfo(_q("Search done"));

View file

@ -40,7 +40,8 @@ using namespace std;
INIT_LOGGER(qt, UpdateChecker); INIT_LOGGER(qt, UpdateChecker);
#define SETTING_KEY "Interface/NextUpdateCheck" #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) UpdateChecker::UpdateChecker(QObject *parent)