Disable createPartitionTable action for LVM device.
This commit is contained in:
parent
fd3580e62f
commit
e50f7e65bf
|
@ -93,7 +93,7 @@ bool CreatePartitionTableOperation::execute(Report& parent)
|
|||
*/
|
||||
bool CreatePartitionTableOperation::canCreate(const Device* device)
|
||||
{
|
||||
return device != nullptr && (device->partitionTable() == nullptr || !device->partitionTable()->isChildMounted());
|
||||
return (device != nullptr) && (device->partitionTable() == nullptr || !device->partitionTable()->isChildMounted()) && (device->type() != Device::LVM_Device);
|
||||
}
|
||||
|
||||
QString CreatePartitionTableOperation::description() const
|
||||
|
|
Loading…
Reference in New Issue