mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
[partition] Avoid an assert when running Calamares as user.
This commit is contained in:
parent
1ef902a41f
commit
a263381996
1 changed files with 4 additions and 0 deletions
|
@ -94,6 +94,10 @@ BootLoaderModel::updateInternal()
|
||||||
clear();
|
clear();
|
||||||
createMbrItems();
|
createMbrItems();
|
||||||
|
|
||||||
|
// An empty model is possible if you don't havee permissions: don't crash though.
|
||||||
|
if ( rowCount() < 1 )
|
||||||
|
return;
|
||||||
|
|
||||||
QString partitionText;
|
QString partitionText;
|
||||||
Partition* partition = KPMHelpers::findPartitionByMountPoint( m_devices, "/boot" );
|
Partition* partition = KPMHelpers::findPartitionByMountPoint( m_devices, "/boot" );
|
||||||
if ( partition )
|
if ( partition )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue