1
0
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:
Christian Muehlhaeuser 2010-11-24 09:34:19 +01:00
parent 8cdc23bd29
commit fa9926d239

View File

@ -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 ) );
}