summaryrefslogtreecommitdiffstats
path: root/collectionalbumsview.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-02-18 08:28:59 +0100
committerArno <arno@disconnect.de>2018-02-18 08:28:59 +0100
commita80fe1e9dc3a16d9c41d40065768315237b8091f (patch)
tree5622440bb751b9333cf9cf89dee21abc7504731c /collectionalbumsview.cpp
parent2c720f3c54b054db348b8107f14362ce1fb2d430 (diff)
downloadBeetPlayer-a80fe1e9dc3a16d9c41d40065768315237b8091f.tar.gz
BeetPlayer-a80fe1e9dc3a16d9c41d40065768315237b8091f.tar.bz2
BeetPlayer-a80fe1e9dc3a16d9c41d40065768315237b8091f.zip
Implement "Goto album"
Raise album view and select, center and expand album if found. It's useful for albums with various artists, I hope.
Diffstat (limited to 'collectionalbumsview.cpp')
-rw-r--r--collectionalbumsview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/collectionalbumsview.cpp b/collectionalbumsview.cpp
index 1f44c10..673a837 100644
--- a/collectionalbumsview.cpp
+++ b/collectionalbumsview.cpp
@@ -26,6 +26,7 @@ void CollectionAlbumsView::populate(){
curAlbum->setIcon(albumIcon);
curAlbum->setData(Album, TypeRole);
curAlbum->setData(albumQ.value(0), IdRole);
+ curAlbum->setData(albumQ.value(1), AlbumRole);
root->appendRow(curAlbum);
QSqlQuery songQ = QSqlQuery(db);
songQ.prepare("SELECT sipos, ttitle, tfullpath, igenres_id, artists.tartists_name, albums.talbum_name, ilength FROM songs, artists, albums WHERE albums.ialbums_id = :id AND songs.iartists_id = artists.iartists_id and songs.ialbums_id = albums.ialbums_id ORDER BY sipos");