From 052759dce5dcd6820becb5cfcc4e2cb4b55fd5d9 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 20 Jun 2012 20:39:32 +0200 Subject: [PATCH] * Fixed dragging unresolved queries from PlayableModel. --- src/libtomahawk/playlist/PlayableModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/playlist/PlayableModel.cpp b/src/libtomahawk/playlist/PlayableModel.cpp index d068fde54..3adf7fd58 100644 --- a/src/libtomahawk/playlist/PlayableModel.cpp +++ b/src/libtomahawk/playlist/PlayableModel.cpp @@ -418,7 +418,7 @@ PlayableModel::mimeData( const QModelIndexList &indexes ) const // lets try with artist only bool fail = false; - foreach ( const QModelIndex& i, indexes) + foreach ( const QModelIndex& i, indexes ) { if ( i.column() > 0 || indexes.contains( i.parent() ) ) continue; @@ -532,7 +532,7 @@ PlayableModel::mimeData( const QModelIndexList &indexes ) const const result_ptr& result = item->result(); resultStream << QString( "application/tomahawk.result.list" ) << qlonglong( &result ); } - else if ( !item->result().isNull() ) + else if ( !item->query().isNull() ) { const query_ptr& query = item->query(); resultStream << QString( "application/tomahawk.query.list" ) << qlonglong( &query );