When importing partition table, pass the flags to Partition class.
Note, this is not enough for flags to work. We need to run a job to set flags. CCBUG: 400331
This commit is contained in:
parent
cf513b9873
commit
a6861bf202
|
@ -1064,7 +1064,7 @@ void MainWindow::onImportPartitionTable()
|
|||
if (fs->supportSetLabel() != FileSystem::cmdSupportNone && !volumeLabel.isEmpty())
|
||||
fs->setLabel(volumeLabel);
|
||||
|
||||
Partition* p = new Partition(parent, device, role, fs, firstSector, lastSector, QString(), PartitionTable::Flag::None, QString(), false, PartitionTable::Flag::None, Partition::State::New);
|
||||
Partition* p = new Partition(parent, device, role, fs, firstSector, lastSector, QString(), PartitionTable::flagsFromList(flags), QString(), false, PartitionTable::flagsFromList(flags), Partition::State::New);
|
||||
|
||||
operationStack().push(new NewOperation(device, p));
|
||||
} else
|
||||
|
|
Loading…
Reference in New Issue