From 208c90ef42e80e1031153c1e64491cb69b55dba7 Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 31 May 2019 13:55:36 +0200 Subject: [PATCH] Require only one of title and track to match search results --- gui/dbquerywidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/dbquerywidget.cpp b/gui/dbquerywidget.cpp index a9a9d9b..d08d7b2 100644 --- a/gui/dbquerywidget.cpp +++ b/gui/dbquerywidget.cpp @@ -290,7 +290,7 @@ void DbQueryWidget::applyMatchingResults(TagEdit *tagEdit) const auto givenArtist = tagEdit->value(KnownField::Artist); const auto givenTrack = tagEdit->trackNumber(); - if (givenTitle.isEmpty() || !givenTrack) { + if (givenTitle.isEmpty() && !givenTrack) { return; }