mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
Do not crash if a device does not have a partition table
This commit is contained in:
parent
b1ce4afc8c
commit
c11fc3a4d2
1 changed files with 4 additions and 0 deletions
|
@ -125,6 +125,10 @@ PartitionModel::data( const QModelIndex& index, int role ) const
|
||||||
void
|
void
|
||||||
PartitionModel::fillPartitionList( PartitionNode* parent )
|
PartitionModel::fillPartitionList( PartitionNode* parent )
|
||||||
{
|
{
|
||||||
|
if ( !parent )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
for ( auto partition : parent->children() )
|
for ( auto partition : parent->children() )
|
||||||
{
|
{
|
||||||
m_partitionList << partition;
|
m_partitionList << partition;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue