1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

Allow ourselves to delete tracks from read-only stations, since they aren't saved

This commit is contained in:
Leo Franchi
2011-02-06 22:17:42 -05:00
parent 8591e0d9c5
commit a17f4ea196

View File

@@ -130,7 +130,7 @@ DynamicModel::newTrackLoading()
void
DynamicModel::removeIndex(const QModelIndex& index, bool moreToCome)
{
if ( isReadOnly() )
if ( m_playlist->mode() == Static && isReadOnly() )
return;
if( m_playlist->mode() == OnDemand )