mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
Use new check as selection filter in view.
This commit is contained in:
parent
935c4816d3
commit
c3404769dc
1 changed files with 7 additions and 0 deletions
|
@ -769,6 +769,13 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice )
|
||||||
m_selectLabel->hide();
|
m_selectLabel->hide();
|
||||||
else
|
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->show();
|
||||||
m_selectLabel->setText( tr( "<strong>Select a partition to install on</strong>" ) );
|
m_selectLabel->setText( tr( "<strong>Select a partition to install on</strong>" ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue