1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 08:19:42 +01:00

* Fixed TWK-366: Don't accept drops unless we are using a backing playlist.

This commit is contained in:
Christian Muehlhaeuser 2011-08-14 01:25:54 +02:00
parent 99c61d1731
commit 28e18b66a6

View File

@ -42,7 +42,7 @@ PlaylistModel::PlaylistModel( QObject* parent )
m_dropStorage.parent = QPersistentModelIndex();
m_dropStorage.row = -10;
setReadOnly( false );
setReadOnly( true );
}
@ -155,7 +155,6 @@ PlaylistModel::loadHistory( const Tomahawk::source_ptr& source, unsigned int amo
}
m_playlist.clear();
setReadOnly( true );
DatabaseCommand_PlaybackHistory* cmd = new DatabaseCommand_PlaybackHistory( source );
cmd->setLimit( amount );
@ -371,10 +370,10 @@ PlaylistModel::dropMimeData( const QMimeData* data, Qt::DropAction action, int r
return true;
}
void
PlaylistModel::parsedDroppedTracks( QList< query_ptr > tracks )
{
if ( m_dropStorage.row == -10 ) // nope
return;