Fix the queue manager
This commit is contained in:
parent
f6b05e0732
commit
0c5d754135
|
@ -260,8 +260,10 @@ bool Queue::dropMimeData(const QMimeData* data, Qt::DropAction action, int row,
|
|||
} else if (data->hasFormat(Playlist::kRowsMimetype)) {
|
||||
// Dragged from the playlist
|
||||
|
||||
Playlist* playlist = NULL;
|
||||
QList<int> source_rows;
|
||||
QDataStream stream(data->data(Playlist::kRowsMimetype));
|
||||
stream >> playlist;
|
||||
stream >> source_rows;
|
||||
|
||||
QModelIndexList source_indexes;
|
||||
|
|
|
@ -50,6 +50,7 @@ void QueueManager::SetPlaylistManager(PlaylistManager* manager) {
|
|||
playlists_ = manager;
|
||||
|
||||
connect(playlists_, SIGNAL(CurrentChanged(Playlist*)), SLOT(CurrentPlaylistChanged(Playlist*)));
|
||||
CurrentPlaylistChanged(playlists_->current());
|
||||
}
|
||||
|
||||
void QueueManager::CurrentPlaylistChanged(Playlist* playlist) {
|
||||
|
|
Loading…
Reference in New Issue