Commit a6861bf2 authored by Andrius Štikonas's avatar Andrius Štikonas

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
parent cf513b98
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment