diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index ef9040328..dfeda35e2 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -769,6 +769,13 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice ) m_selectLabel->hide(); else { + SelectionFilter filter = [ this ]( const QModelIndex& index ) + { + return PartUtils::canBeReplaced( (Partition*)( index.data( PartitionModel::PartitionPtrRole ).value< void* >() ) ); + }; + m_beforePartitionBarsView->setSelectionFilter( filter ); + m_beforePartitionLabelsView->setSelectionFilter( filter ); + m_selectLabel->show(); m_selectLabel->setText( tr( "Select a partition to install on" ) ); }