mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Be a bit safer if model changes
This commit is contained in:
@@ -347,7 +347,8 @@ AlbumModel::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, Q
|
|||||||
if ( !pm.isNull() )
|
if ( !pm.isNull() )
|
||||||
ai->cover = pm;
|
ai->cover = pm;
|
||||||
|
|
||||||
emit dataChanged( ai->index, ai->index.sibling( ai->index.row(), columnCount( QModelIndex() ) - 1 ) );
|
if ( ai->index.isValid() )
|
||||||
|
emit dataChanged( ai->index, ai->index.sibling( ai->index.row(), columnCount( QModelIndex() ) - 1 ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user