Sanity check

This commit is contained in:
Arnaud Bienner 2014-01-12 21:25:53 +01:00
parent b716f802f3
commit c7b0c02800
1 changed files with 4 additions and 1 deletions

View File

@ -1691,7 +1691,10 @@ void MainWindow::ShowInLibrary() {
break;
}
}
QString search = "artist:"+songs[0].artist()+" album:"+songs[0].album();
QString search;
if (!songs.isEmpty()) {
search = "artist:" + songs.first().artist() + " album:" + songs.first().album();
}
library_view_->filter()->ShowInLibrary(search);
}