Keep the EFI system partitions model up to date with reverts.

This commit is contained in:
Teo Mrnjavac 2016-02-19 17:04:16 +01:00
parent e91d213872
commit 64498ea71b

View File

@ -391,6 +391,9 @@ PartitionCoreModule::refresh()
updateHasRootMountPoint();
updateIsDirty();
m_bootLoaderModel->update();
if ( QDir( "/sys/firmware/efi/efivars" ).exists() )
scanForEfiSystemPartitions(); //FIXME: this should be removed in favor of
// proper KPM support for EFI
}
void PartitionCoreModule::updateHasRootMountPoint()
@ -512,6 +515,7 @@ PartitionCoreModule::revertAllDevices()
{
revertDevice( devInfo->device.data() );
}
refresh();
}
@ -536,7 +540,7 @@ PartitionCoreModule::revertDevice( Device* dev )
m_bootLoaderModel->init( devices );
updateIsDirty();
refresh();
emit deviceReverted( newDev );
}