mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Be less verbose in SourceTreeView.
This commit is contained in:
@@ -892,12 +892,10 @@ SourceTreeView::dropEvent( QDropEvent* event )
|
|||||||
}*/
|
}*/
|
||||||
|
|
||||||
QTreeView::dropEvent( event );
|
QTreeView::dropEvent( event );
|
||||||
if ( event->isAccepted() )
|
if ( !event->isAccepted() )
|
||||||
{
|
{
|
||||||
tDebug() << Q_FUNC_INFO << "Ignoring accepted event!";
|
|
||||||
}
|
|
||||||
// if it's a playlist drop, accept it anywhere in the sourcetree by manually parsing it.
|
// if it's a playlist drop, accept it anywhere in the sourcetree by manually parsing it.
|
||||||
else if ( DropJob::isDropType( DropJob::Playlist, event->mimeData() ) )
|
if ( DropJob::isDropType( DropJob::Playlist, event->mimeData() ) )
|
||||||
{
|
{
|
||||||
DropJob* dropThis = new DropJob;
|
DropJob* dropThis = new DropJob;
|
||||||
dropThis->setDropTypes( DropJob::Playlist );
|
dropThis->setDropTypes( DropJob::Playlist );
|
||||||
@@ -913,6 +911,7 @@ SourceTreeView::dropEvent( QDropEvent* event )
|
|||||||
event->acceptProposedAction();
|
event->acceptProposedAction();
|
||||||
event->accept();
|
event->accept();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_dragging = false;
|
m_dragging = false;
|
||||||
m_dropIndex = QPersistentModelIndex();
|
m_dropIndex = QPersistentModelIndex();
|
||||||
|
Reference in New Issue
Block a user