mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-28 16:20:26 +01:00
parent
e1d50ce28f
commit
0a31a94ee8
@ -621,6 +621,7 @@ void AlbumCoverManager::ShowCover() {
|
||||
if (!song.is_valid()) return;
|
||||
|
||||
album_cover_choice_controller_->ShowCover(song);
|
||||
|
||||
}
|
||||
|
||||
void AlbumCoverManager::FetchSingleCover() {
|
||||
@ -809,13 +810,11 @@ SongMimeData *AlbumCoverManager::GetMimeDataForAlbums(const QModelIndexList &ind
|
||||
|
||||
}
|
||||
|
||||
void AlbumCoverManager::AlbumDoubleClicked(const QModelIndex &index) {
|
||||
void AlbumCoverManager::AlbumDoubleClicked(const QModelIndex &idx) {
|
||||
|
||||
SongMimeData *mimedata = GetMimeDataForAlbums(QModelIndexList() << index);
|
||||
if (mimedata) {
|
||||
mimedata->from_doubleclick_ = true;
|
||||
emit AddToPlaylist(mimedata);
|
||||
}
|
||||
QListWidgetItem *item = static_cast<QListWidgetItem*>(idx.internalPointer());
|
||||
if (!item) return;
|
||||
album_cover_choice_controller_->ShowCover(ItemAsSong(item));
|
||||
|
||||
}
|
||||
|
||||
|
@ -151,7 +151,7 @@ class AlbumCoverManager : public QMainWindow {
|
||||
void ShowCover();
|
||||
|
||||
// For adding albums to the playlist
|
||||
void AlbumDoubleClicked(const QModelIndex &index);
|
||||
void AlbumDoubleClicked(const QModelIndex &idx);
|
||||
void AddSelectedToPlaylist();
|
||||
void LoadSelectedToPlaylist();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user