Read Shred action from KConfig.

This commit is contained in:
Teo Mrnjavac 2015-07-10 15:57:02 +02:00
parent cf51fa1ad0
commit c0381cd913
1 changed files with 6 additions and 1 deletions

View File

@ -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()