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 )
{
return PartUtils::canBeResized( m_core,
index.data( PartitionModel::PartitionPathRole ).toString() );
return PartUtils::canBeResized( (Partition*)( index.data( PartitionModel::PartitionPtrRole ).value< void* >() ) );
};
m_beforePartitionBarsView->setSelectionFilter( filter );
m_beforePartitionLabelsView->setSelectionFilter( filter );