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

* Fixed dragging unresolved queries from PlayableModel.

This commit is contained in:
Christian Muehlhaeuser
2012-06-20 20:39:32 +02:00
parent ae6fda4cc8
commit 052759dce5

View File

@@ -418,7 +418,7 @@ PlayableModel::mimeData( const QModelIndexList &indexes ) const
// lets try with artist only // lets try with artist only
bool fail = false; bool fail = false;
foreach ( const QModelIndex& i, indexes) foreach ( const QModelIndex& i, indexes )
{ {
if ( i.column() > 0 || indexes.contains( i.parent() ) ) if ( i.column() > 0 || indexes.contains( i.parent() ) )
continue; continue;
@@ -532,7 +532,7 @@ PlayableModel::mimeData( const QModelIndexList &indexes ) const
const result_ptr& result = item->result(); const result_ptr& result = item->result();
resultStream << QString( "application/tomahawk.result.list" ) << qlonglong( &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(); const query_ptr& query = item->query();
resultStream << QString( "application/tomahawk.query.list" ) << qlonglong( &query ); resultStream << QString( "application/tomahawk.query.list" ) << qlonglong( &query );