mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 07:07:05 +02:00
* Don't crash after removing a source from CollectionFlatModel.
This commit is contained in:
@@ -194,6 +194,8 @@ CollectionFlatModel::onDataChanged()
|
|||||||
{
|
{
|
||||||
PlItem* p = (PlItem*)sender();
|
PlItem* p = (PlItem*)sender();
|
||||||
// emit itemSizeChanged( p->index );
|
// emit itemSizeChanged( p->index );
|
||||||
|
|
||||||
|
if ( p && p->index.isValid() )
|
||||||
emit dataChanged( p->index, p->index.sibling( p->index.row(), columnCount() - 1 ) );
|
emit dataChanged( p->index, p->index.sibling( p->index.row(), columnCount() - 1 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user