[partition] Avoid an assert when running Calamares as user.
This commit is contained in:
parent
1ef902a41f
commit
a263381996
@ -94,6 +94,10 @@ BootLoaderModel::updateInternal()
|
||||
clear();
|
||||
createMbrItems();
|
||||
|
||||
// An empty model is possible if you don't havee permissions: don't crash though.
|
||||
if ( rowCount() < 1 )
|
||||
return;
|
||||
|
||||
QString partitionText;
|
||||
Partition* partition = KPMHelpers::findPartitionByMountPoint( m_devices, "/boot" );
|
||||
if ( partition )
|
||||
|
Loading…
Reference in New Issue
Block a user