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