mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-02-24 20:03:07 +01:00
* Don't crash after removing a source from CollectionFlatModel.
This commit is contained in:
parent
8cdc23bd29
commit
fa9926d239
@ -194,7 +194,9 @@ CollectionFlatModel::onDataChanged()
|
||||
{
|
||||
PlItem* p = (PlItem*)sender();
|
||||
// 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 ) );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user