From b970a1d628e02214444eb00e61e38f6c86aff58e Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 20 Aug 2014 16:25:23 +0200 Subject: [PATCH] * Disable hover-controls when d&d over playlists. --- src/tomahawk/sourcetree/SourceDelegate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tomahawk/sourcetree/SourceDelegate.cpp b/src/tomahawk/sourcetree/SourceDelegate.cpp index f4466488c..d434ba600 100644 --- a/src/tomahawk/sourcetree/SourceDelegate.cpp +++ b/src/tomahawk/sourcetree/SourceDelegate.cpp @@ -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() )