Read Shred action from KConfig.
This commit is contained in:
parent
cf51fa1ad0
commit
c0381cd913
|
@ -543,7 +543,12 @@ void PartitionManagerWidget::onDeletePartition(bool shred)
|
||||||
setClipboardPartition(NULL);
|
setClipboardPartition(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
operationStack().push(new DeleteOperation(*selectedDevice(), selectedPartition(), shred));
|
if (shred && Config::shredSource() == Config::EnumShredSource::random)
|
||||||
|
operationStack().push(new DeleteOperation(*selectedDevice(), selectedPartition(), DeleteOperation::RandomShred));
|
||||||
|
else if (shred && Config::shredSource() == Config::EnumShredSource::zeros)
|
||||||
|
operationStack().push(new DeleteOperation(*selectedDevice(), selectedPartition(), DeleteOperation::ZeroShred));
|
||||||
|
else
|
||||||
|
operationStack().push(new DeleteOperation(*selectedDevice(), selectedPartition(), DeleteOperation::NoShred));
|
||||||
}
|
}
|
||||||
|
|
||||||
void PartitionManagerWidget::onShredPartition()
|
void PartitionManagerWidget::onShredPartition()
|
||||||
|
|
Loading…
Reference in New Issue