[netinstall] Avoid negative row indexes
This commit is contained in:
parent
c0f4b80cbe
commit
cf2899b1e6
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user