Commit 9195ef85 authored by François Cartegnie's avatar François Cartegnie 🤞

Qt: PLModel: Don't emit dataChanged() for out of range columns.

parent 0c9fa0fa
......@@ -890,7 +890,7 @@ void PLModel::updateChildren( playlist_item_t *p_node, PLItem *root )
void PLModel::updateTreeItem( PLItem *item )
{
if( !item ) return;
emit dataChanged( index( item, 0 ) , index( item, columnCount( QModelIndex() ) ) );
emit dataChanged( index( item, 0 ) , index( item, columnCount( QModelIndex() ) - 1 ) );
}
/************************* Actions ******************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment