1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 05:37:29 +02:00

Comments on workaround for playlist update

nothing
This commit is contained in:
hugolm84
2011-09-06 18:06:50 +02:00
committed by Leo Franchi
parent 0b37514cfe
commit 9bc112090d
3 changed files with 10 additions and 2 deletions

View File

@@ -419,6 +419,14 @@ PlaylistModel::parsedDroppedTracks( QList< query_ptr > tracks )
} }
emit endInsertRows(); emit endInsertRows();
// Work around Qt-on-mac bug where drags from outside the app are Qt::MoveAction
// instead of Qt::CopyAction
// Samething seems to be applying to Linux
// However, this workaround updates the playlist revision on reorder aswell...
#ifdef Q_WS_MAC
if ( m_dropStorage.action & Qt::CopyAction || m_dropStorage.action & Qt::MoveAction )
#else
#ifdef Q_OS_LINUX
if ( m_dropStorage.action & Qt::CopyAction || m_dropStorage.action & Qt::MoveAction ) if ( m_dropStorage.action & Qt::CopyAction || m_dropStorage.action & Qt::MoveAction )
{ {
onPlaylistChanged(); onPlaylistChanged();

View File

@@ -68,7 +68,7 @@ void AnimationHelper::setSize( const QSize& size )
{ {
m_size = size; m_size = size;
emit sizeChanged(); emit sizeChanged();
qDebug() << "animaton setting size to" << size; //qDebug() << "animaton setting size to" << size;
} }
void AnimationHelper::expand() void AnimationHelper::expand()

View File

@@ -267,7 +267,7 @@ SourceTreeView::addToSpotify( )
PlaylistItem* item = itemFromIndex< PlaylistItem >( idx ); PlaylistItem* item = itemFromIndex< PlaylistItem >( idx );
playlist_ptr playlist = item->playlist(); playlist_ptr playlist = item->playlist();
qDebug() << Q_FUNC_INFO << "Static playlist" << playlist->title(); qDebug() << Q_FUNC_INFO << "Static playlist" << playlist->title();
// Do something with playlist -> spotify // Do something with playlist -> spotify()
} else if( type == SourcesModel::AutomaticPlaylist || type == SourcesModel::Station ) } else if( type == SourcesModel::AutomaticPlaylist || type == SourcesModel::Station )
{ {