Commit 9c91190b authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

add automated tests to ViewManager and fix one bug in it

Opening all artists from a genre was never implemented even though a
test was supposed to exist. Fix that.
parent 1e635e63
This diff is collapsed.
......@@ -381,6 +381,10 @@ void ViewManager::allTracksViewIsLoaded()
void ViewManager::allGenresViewIsLoaded()
{
mCurrentView = ViewsType::AllGenres;
if (mTargetView == ViewsType::AllArtistsFromGenre) {
Q_EMIT openGridView(ViewsType::AllArtistsFromGenre, ElisaUtils::FilterByGenre, 1, {}, {}, {}, ElisaUtils::Artist,
QUrl(QStringLiteral("image://icon/view-media-artist")), mTargetGenreName, {}, ViewHideRating, DelegateWithoutSecondaryText);
}
}
void ViewManager::allArtistsFromGenreViewIsLoaded()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment