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:
Andrius Štikonas 2019-02-28 00:16:50 +00:00
parent cf513b9873
commit a6861bf202
1 changed files with 1 additions and 1 deletions

View File

@ -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