fix opportunity to segfault in media library
This commit is contained in:
@@ -187,6 +187,7 @@ void MediaLibrary::Update()
|
||||
Albums->AddOption(std::make_pair("(" + *j + ") " + *it, SearchConstraints(*it, *j)));
|
||||
}
|
||||
utf_to_locale(Artists->Current());
|
||||
if (!Albums->Empty())
|
||||
Albums->Sort<CaseInsensitiveSorting>((*Albums)[0].first == "<no album>");
|
||||
Albums->Window::Clear();
|
||||
Albums->Refresh();
|
||||
|
||||
Reference in New Issue
Block a user