mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 15:29:42 +01:00
Fix regression from model refactor that changed function name
This commit is contained in:
parent
633dddf281
commit
de6c80f04d
@ -304,11 +304,12 @@ DynamicModel::addToPlaylist( const QList< query_ptr >& entries, bool clearFirst
|
||||
|
||||
|
||||
void
|
||||
DynamicModel::removeIndex(const QModelIndex& idx, bool moreToCome)
|
||||
DynamicModel::remove(const QModelIndex& idx, bool moreToCome)
|
||||
{
|
||||
if ( m_playlist->mode() == Static && isReadOnly() )
|
||||
return;
|
||||
|
||||
qDebug() << Q_FUNC_INFO << "DYNAMIC MODEL REMOVIN!" << moreToCome << ( idx == index( rowCount( QModelIndex() ) - 1, 0, QModelIndex() ) );
|
||||
if( m_playlist->mode() == OnDemand ) {
|
||||
if( !moreToCome && idx == index( rowCount( QModelIndex() ) - 1, 0, QModelIndex() ) ) { // if the user is manually removing the last one, re-add as we're a station
|
||||
newTrackLoading();
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
|
||||
void loadPlaylist( const dynplaylist_ptr& playlist, bool loadEntries = true );
|
||||
|
||||
virtual void removeIndex( const QModelIndex& index, bool moreToCome = false );
|
||||
virtual void remove( const QModelIndex& index, bool moreToCome = false );
|
||||
|
||||
bool searchingForNext() const { return m_searchingForNext; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user