[netinstall] Avoid negative row indexes

This commit is contained in:
Adriaan de Groot 2022-01-31 12:59:03 +01:00
parent c0f4b80cbe
commit cf2899b1e6

View File

@ -252,7 +252,7 @@ PackageTreeItem::setChildrenSelected( Qt::CheckState isSelected )
void
PackageTreeItem::removeChild( int row )
{
if ( row < m_childItems.count() )
if ( 0 <= row && row < m_childItems.count() )
{
m_childItems.removeAt( row );
}