Do not delete partitions when we have no partition table.
This commit is contained in:
parent
9ca3a5740a
commit
0910875137
|
@ -49,7 +49,8 @@ DeleteOperation::DeleteOperation(Device& d, Partition* p, ShredAction shred) :
|
||||||
}
|
}
|
||||||
|
|
||||||
addJob(deleteFileSystemJob());
|
addJob(deleteFileSystemJob());
|
||||||
addJob(deletePartitionJob());
|
if (d.partitionTable()->type() != PartitionTable::TableType::none)
|
||||||
|
addJob(deletePartitionJob());
|
||||||
}
|
}
|
||||||
|
|
||||||
DeleteOperation::~DeleteOperation()
|
DeleteOperation::~DeleteOperation()
|
||||||
|
|
Loading…
Reference in New Issue