diff --git a/src/modules/partition/core/BootLoaderModel.cpp b/src/modules/partition/core/BootLoaderModel.cpp index e785050d2..7f5a0427a 100644 --- a/src/modules/partition/core/BootLoaderModel.cpp +++ b/src/modules/partition/core/BootLoaderModel.cpp @@ -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 )