Reset the partition model before swapping the new Device into the DM.
This commit is contained in:
parent
dfededc4b4
commit
423c9ccfb7
@ -510,6 +510,8 @@ PartitionCoreModule::revertDevice( Device* dev )
|
||||
CoreBackend* backend = CoreBackendManager::self()->backend();
|
||||
Device *newDev = backend->scanDevice( devInfo->device->deviceNode() );
|
||||
devInfo->device.reset( newDev );
|
||||
devInfo->partitionModel->init( newDev, m_osproberLines );
|
||||
|
||||
m_deviceModel->swapDevice( dev, newDev );
|
||||
|
||||
QList< Device* > devices;
|
||||
@ -518,8 +520,6 @@ PartitionCoreModule::revertDevice( Device* dev )
|
||||
|
||||
m_bootLoaderModel->init( devices );
|
||||
|
||||
devInfo->partitionModel->init( newDev, m_osproberLines );
|
||||
|
||||
updateIsDirty();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user