1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 09:19:41 +01:00

lets be safe

This commit is contained in:
Leo Franchi 2011-05-26 09:39:39 -04:00
parent 0172515a86
commit f4cef4fff0

View File

@ -199,7 +199,7 @@ SourcesModel::dropMimeData( const QMimeData* data, Qt::DropAction action, int ro
item = itemFromIndex( parent );
else if( column == 0 )
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 ) );
Q_ASSERT( item );