Use the new canBeResized in ChoicePage.

This commit is contained in:
Teo Mrnjavac 2016-02-11 17:04:36 +01:00
parent 01eede3f6e
commit ffe419751c

View File

@ -700,8 +700,7 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice )
SelectionFilter filter = [ this ]( const QModelIndex& index ) SelectionFilter filter = [ this ]( const QModelIndex& index )
{ {
return PartUtils::canBeResized( m_core, return PartUtils::canBeResized( (Partition*)( index.data( PartitionModel::PartitionPtrRole ).value< void* >() ) );
index.data( PartitionModel::PartitionPathRole ).toString() );
}; };
m_beforePartitionBarsView->setSelectionFilter( filter ); m_beforePartitionBarsView->setSelectionFilter( filter );
m_beforePartitionLabelsView->setSelectionFilter( filter ); m_beforePartitionLabelsView->setSelectionFilter( filter );