Use <= for consistency

This commit is contained in:
Craig Drummond
2017-12-16 22:45:11 +00:00
committed by Craig Drummond
parent 2bfedd3586
commit 95069c19e4
2 changed files with 2 additions and 2 deletions

View File

@@ -285,7 +285,7 @@ void LibraryPage::modelReset()
{
genreCombo->update(MpdLibraryModel::self()->getGenres());
int count = MpdLibraryModel::self()->trackCount();
view->setMinSearchDebounce(count <= 1250 ? 1000u : count < 1800 ? 1500u : 2000u);
view->setMinSearchDebounce(count <= 1250 ? 1000u : count <= 1800 ? 1500u : 2000u);
}
void LibraryPage::groupByChanged()

View File

@@ -174,7 +174,7 @@ void OnlineDbWidget::addRandomAlbum()
void OnlineDbWidget::modelReset()
{
int count = srv->trackCount();
view->setMinSearchDebounce(count <= 1250 ? 1000u : count < 1800 ? 1500u : 2000u);
view->setMinSearchDebounce(count <= 1250 ? 1000u : count <= 1800 ? 1500u : 2000u);
}
void OnlineDbWidget::doSearch()