Do not crash if a device does not have a partition table
This commit is contained in:
parent
b1ce4afc8c
commit
c11fc3a4d2
@ -125,6 +125,10 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
||||
void
|
||||
PartitionModel::fillPartitionList( PartitionNode* parent )
|
||||
{
|
||||
if ( !parent )
|
||||
{
|
||||
return;
|
||||
}
|
||||
for ( auto partition : parent->children() )
|
||||
{
|
||||
m_partitionList << partition;
|
||||
|
Loading…
Reference in New Issue
Block a user