1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

Fixed updaterevision on empty playlist from drag

This commit is contained in:
hugolm84 2011-09-06 14:21:59 +02:00 committed by Leo Franchi
parent 869640b2e2
commit b4a8154eae
2 changed files with 1 additions and 2 deletions

View File

@ -322,6 +322,7 @@ PlaylistModel::onTracksInserted( unsigned int row, const QList<Tomahawk::query_p
void
PlaylistModel::onDataChanged()
{
qDebug() << Q_FUNC_INFO;
TrackModelItem* p = (TrackModelItem*)sender();
if ( p && p->index.isValid() )
emit dataChanged( p->index, p->index.sibling( p->index.row(), columnCount() - 1 ) );

View File

@ -70,13 +70,11 @@ public:
void remove( unsigned int row, bool moreToCome = false );
virtual void removeIndex( const QModelIndex& index, bool moreToCome = false );
bool isTemporary() const;
signals:
void repeatModeChanged( Tomahawk::PlaylistInterface::RepeatMode mode );
void shuffleModeChanged( bool enabled );
void itemSizeChanged( const QModelIndex& index );
void playlistDeleted();
void playlistChanged();