Skip to content
Snippets Groups Projects
Commit 7e4a2fe3 authored by Teo Mrnjavac's avatar Teo Mrnjavac Committed by GitHub
Browse files

Merge pull request #258 from tctara/master

Use device's immutable copy instead of rescanning.
parents c316d22b 64db6d5b
No related branches found
No related tags found
1 merge request!2Merge upstream changes
...@@ -700,7 +700,6 @@ QList< PartitionCoreModule::SummaryInfo > ...@@ -700,7 +700,6 @@ QList< PartitionCoreModule::SummaryInfo >
PartitionCoreModule::createSummaryInfo() const PartitionCoreModule::createSummaryInfo() const
{ {
QList< SummaryInfo > lst; QList< SummaryInfo > lst;
CoreBackend* backend = CoreBackendManager::self()->backend();
for ( auto deviceInfo : m_deviceInfos ) for ( auto deviceInfo : m_deviceInfos )
{ {
if ( !deviceInfo->isDirty() ) if ( !deviceInfo->isDirty() )
...@@ -709,7 +708,7 @@ PartitionCoreModule::createSummaryInfo() const ...@@ -709,7 +708,7 @@ PartitionCoreModule::createSummaryInfo() const
summaryInfo.deviceName = deviceInfo->device->name(); summaryInfo.deviceName = deviceInfo->device->name();
summaryInfo.deviceNode = deviceInfo->device->deviceNode(); summaryInfo.deviceNode = deviceInfo->device->deviceNode();
Device* deviceBefore = backend->scanDevice( deviceInfo->device->deviceNode() ); Device* deviceBefore = deviceInfo->immutableDevice.data();
summaryInfo.partitionModelBefore = new PartitionModel; summaryInfo.partitionModelBefore = new PartitionModel;
summaryInfo.partitionModelBefore->init( deviceBefore, m_osproberLines ); summaryInfo.partitionModelBefore->init( deviceBefore, m_osproberLines );
// Make deviceBefore a child of partitionModelBefore so that it is not // Make deviceBefore a child of partitionModelBefore so that it is not
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment