mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Fix regression from model refactor that changed function name
This commit is contained in:
@@ -304,11 +304,12 @@ DynamicModel::addToPlaylist( const QList< query_ptr >& entries, bool clearFirst
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
DynamicModel::removeIndex(const QModelIndex& idx, bool moreToCome)
|
DynamicModel::remove(const QModelIndex& idx, bool moreToCome)
|
||||||
{
|
{
|
||||||
if ( m_playlist->mode() == Static && isReadOnly() )
|
if ( m_playlist->mode() == Static && isReadOnly() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
qDebug() << Q_FUNC_INFO << "DYNAMIC MODEL REMOVIN!" << moreToCome << ( idx == index( rowCount( QModelIndex() ) - 1, 0, QModelIndex() ) );
|
||||||
if( m_playlist->mode() == OnDemand ) {
|
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
|
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();
|
newTrackLoading();
|
||||||
|
@@ -45,7 +45,7 @@ public:
|
|||||||
|
|
||||||
void loadPlaylist( const dynplaylist_ptr& playlist, bool loadEntries = true );
|
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; }
|
bool searchingForNext() const { return m_searchingForNext; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user