Mark the partition we create as "StateNew"

This way if user wants to remove it later we can remove the creation job
instead of queueing a delete job
This commit is contained in:
Aurélien Gâteau 2014-07-02 15:48:47 +02:00
parent 724780fb23
commit f9ca45face

View file

@ -102,7 +102,12 @@ CreatePartitionDialog::createJob()
*m_device,
m_role,
fs, first, last,
QString() /* path */
QString() /* path */,
PartitionTable::FlagNone /* availableFlags */,
QString() /* mountPoint */,
false /* mounted */,
PartitionTable::FlagNone /* activeFlags */,
Partition::StateNew
);
return new CreatePartitionJob( m_device, partition );
}