mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
Comments on workaround for playlist update
nothing
This commit is contained in:
parent
0b37514cfe
commit
9bc112090d
@ -419,6 +419,14 @@ PlaylistModel::parsedDroppedTracks( QList< query_ptr > tracks )
|
||||
}
|
||||
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 )
|
||||
{
|
||||
onPlaylistChanged();
|
||||
|
@ -68,7 +68,7 @@ void AnimationHelper::setSize( const QSize& size )
|
||||
{
|
||||
m_size = size;
|
||||
emit sizeChanged();
|
||||
qDebug() << "animaton setting size to" << size;
|
||||
//qDebug() << "animaton setting size to" << size;
|
||||
}
|
||||
|
||||
void AnimationHelper::expand()
|
||||
|
@ -267,7 +267,7 @@ SourceTreeView::addToSpotify( )
|
||||
PlaylistItem* item = itemFromIndex< PlaylistItem >( idx );
|
||||
playlist_ptr playlist = item->playlist();
|
||||
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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user