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:
@@ -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() )
|
||||
|
Reference in New Issue
Block a user