Commit 664e991d authored by François Cartegnie's avatar François Cartegnie 🤞

Qt: fix deadlock on sort

parent 54bda02c
......@@ -820,13 +820,13 @@ void PLModel::sort( QModelIndex caller, QModelIndex rootIndex, const int column,
order == Qt::AscendingOrder ?
ORDER_NORMAL : ORDER_REVERSE );
}
}
if( count )
{
beginInsertRows( qIndex, 0, count - 1 );
updateChildren( item );
endInsertRows( );
if( count )
{
beginInsertRows( qIndex, 0, count - 1 );
updateChildren( item );
endInsertRows( );
}
}
/* if we have popup item, try to make sure that you keep that item visible */
......
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