summaryrefslogtreecommitdiff
path: root/src/media_library.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2010-09-09 16:43:10 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2010-09-09 16:43:10 +0200
commit968d2366aa9963b05e00fd1f96dcd8c82c96184b (patch)
treeb4341c57a7d7833d3fc1ad69e0b8562a72884f3a /src/media_library.cpp
parent7ad624ebc6984dffa0c7cf767016c1e3fc2fe739 (diff)
settings: make displaying 'empty tag' entry optional
Diffstat (limited to 'src/media_library.cpp')
-rw-r--r--src/media_library.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/media_library.cpp b/src/media_library.cpp
index 949d8456..579b2ae8 100644
--- a/src/media_library.cpp
+++ b/src/media_library.cpp
@@ -196,6 +196,8 @@ void MediaLibrary::Update()
sort(list.begin(), list.end(), CaseInsensitiveSorting());
for (MPD::TagList::iterator it = list.begin(); it != list.end(); ++it)
{
+ if (it->empty() && !Config.media_library_display_empty_tag)
+ continue;
utf_to_locale(*it);
Artists->AddOption(*it);
}