summaryrefslogtreecommitdiff
path: root/src/SongFilter.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-06-23 10:13:50 +0200
committerMax Kellermann <max@duempel.org>2014-06-23 10:13:50 +0200
commitfa1fb47d7553a15f8bde1636364c0e6dba57c39c (patch)
treed458b289b803690651efa0759852df812de274eb /src/SongFilter.cxx
parentb9eeb6e6eb1818c591634abf5e25e6a8bb8e89fd (diff)
parent848ed1478866e4d99c10aa962a6d976a6b989536 (diff)
Merge branch 'v0.18.x'
Diffstat (limited to 'src/SongFilter.cxx')
-rw-r--r--src/SongFilter.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/SongFilter.cxx b/src/SongFilter.cxx
index 432280e4e..0640ae19e 100644
--- a/src/SongFilter.cxx
+++ b/src/SongFilter.cxx
@@ -214,6 +214,16 @@ SongFilter::Match(const LightSong &song) const
return true;
}
+bool
+SongFilter::HasOtherThanBase() const
+{
+ for (const auto &i : items)
+ if (i.GetTag() != LOCATE_TAG_BASE_TYPE)
+ return true;
+
+ return false;
+}
+
std::string
SongFilter::GetBase() const
{