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