1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-10 16:14:40 +02:00

* Disable hover-controls when d&d over playlists.

This commit is contained in:
Christian Muehlhaeuser
2014-08-20 16:25:23 +02:00
parent b17ef98963
commit b970a1d628

View File

@@ -984,7 +984,7 @@ SourceDelegate::hovered( const QModelIndex& index, const QMimeData* mimeData )
}
return;
}
if ( ( type == SourcesModel::StaticPlaylist || type == SourcesModel::CategoryAdd ) &&
/* if ( ( type == SourcesModel::StaticPlaylist || type == SourcesModel::CategoryAdd ) &&
!m_expandedMap.contains( index ) )
{
foreach ( AnimationHelper* helper, m_expandedMap )
@@ -1002,7 +1002,7 @@ SourceDelegate::hovered( const QModelIndex& index, const QMimeData* mimeData )
m_expandedMap.insert( m_newDropHoverIndex, new AnimationHelper( m_newDropHoverIndex ) );
connect( m_expandedMap.value( m_newDropHoverIndex ), SIGNAL( finished( QModelIndex ) ), SLOT( animationFinished( QModelIndex ) ) );
}
else if ( type == SourcesModel::Collection )
else*/ if ( type == SourcesModel::Collection )
{
m_dropMimeData->clear();
foreach ( const QString& mimeDataFormat, mimeData->formats() )