Fix the queue manager

This commit is contained in:
David Sansome 2010-08-28 19:17:39 +00:00
parent f6b05e0732
commit 0c5d754135
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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) {