Hide encryption widget if not Erase.

This commit is contained in:
Teo Mrnjavac 2016-05-18 07:22:13 +02:00
parent 60dcba8735
commit a4ab8dad46

View File

@ -850,6 +850,7 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice )
m_selectLabel->hide();
else
{
m_encryptWidget->hide();
SelectionFilter filter = [ this ]( const QModelIndex& index )
{
return PartUtils::canBeReplaced( (Partition*)( index.data( PartitionModel::PartitionPtrRole ).value< void* >() ) );