Display di.fm suggestions in the global search box properly

This commit is contained in:
David Sansome 2011-11-29 14:29:48 +00:00
parent c1aaed91be
commit 42a20d6bcb
1 changed files with 2 additions and 0 deletions

View File

@ -135,6 +135,8 @@ QString SimpleSearchProvider::GetSuggestion() {
const Item& item = items_[qrand() % items_.count()];
if (!item.keyword_.isEmpty())
return item.keyword_;
if (!item.metadata_.title().isEmpty())
return item.metadata_.title();
}
return QString();