parent
e1d50ce28f
commit
0a31a94ee8
@ -621,6 +621,7 @@ void AlbumCoverManager::ShowCover() {
|
|||||||
if (!song.is_valid()) return;
|
if (!song.is_valid()) return;
|
||||||
|
|
||||||
album_cover_choice_controller_->ShowCover(song);
|
album_cover_choice_controller_->ShowCover(song);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AlbumCoverManager::FetchSingleCover() {
|
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);
|
QListWidgetItem *item = static_cast<QListWidgetItem*>(idx.internalPointer());
|
||||||
if (mimedata) {
|
if (!item) return;
|
||||||
mimedata->from_doubleclick_ = true;
|
album_cover_choice_controller_->ShowCover(ItemAsSong(item));
|
||||||
emit AddToPlaylist(mimedata);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ class AlbumCoverManager : public QMainWindow {
|
|||||||
void ShowCover();
|
void ShowCover();
|
||||||
|
|
||||||
// For adding albums to the playlist
|
// For adding albums to the playlist
|
||||||
void AlbumDoubleClicked(const QModelIndex &index);
|
void AlbumDoubleClicked(const QModelIndex &idx);
|
||||||
void AddSelectedToPlaylist();
|
void AddSelectedToPlaylist();
|
||||||
void LoadSelectedToPlaylist();
|
void LoadSelectedToPlaylist();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user