mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
lets be safe
This commit is contained in:
@@ -199,7 +199,7 @@ SourcesModel::dropMimeData( const QMimeData* data, Qt::DropAction action, int ro
|
|||||||
item = itemFromIndex( parent );
|
item = itemFromIndex( parent );
|
||||||
else if( column == 0 )
|
else if( column == 0 )
|
||||||
item = itemFromIndex( index( row, column, parent ) );
|
item = itemFromIndex( index( row, column, parent ) );
|
||||||
else // column is -1, that means the drop is happening "below" the indices. that means we actually want the one before it
|
else if( column == -1 ) // column is -1, that means the drop is happening "below" the indices. that means we actually want the one before it
|
||||||
item = itemFromIndex( index( row - 1, 0, parent ) );
|
item = itemFromIndex( index( row - 1, 0, parent ) );
|
||||||
|
|
||||||
Q_ASSERT( item );
|
Q_ASSERT( item );
|
||||||
|
Reference in New Issue
Block a user