Try with rows.
This commit is contained in:
parent
afef78d1af
commit
6dd639fd3c
@ -451,7 +451,7 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
|
|||||||
[]{},
|
[]{},
|
||||||
this );
|
this );
|
||||||
}
|
}
|
||||||
setNextEnabled( !m_beforePartitionBarsView->selectionModel()->selection().isEmpty() );
|
setNextEnabled( !m_beforePartitionBarsView->selectionModel()->selectedRows().isEmpty() );
|
||||||
|
|
||||||
connect( m_beforePartitionBarsView->selectionModel(), SIGNAL( currentRowChanged( QModelIndex, QModelIndex ) ),
|
connect( m_beforePartitionBarsView->selectionModel(), SIGNAL( currentRowChanged( QModelIndex, QModelIndex ) ),
|
||||||
this, SLOT( doReplaceSelectedPartition( QModelIndex, QModelIndex ) ),
|
this, SLOT( doReplaceSelectedPartition( QModelIndex, QModelIndex ) ),
|
||||||
@ -492,7 +492,7 @@ ChoicePage::doReplaceSelectedPartition( const QModelIndex& current,
|
|||||||
} ),
|
} ),
|
||||||
[]
|
[]
|
||||||
{
|
{
|
||||||
setNextEnabled( !m_beforePartitionBarsView->selectionModel()->selection().isEmpty() );
|
setNextEnabled( !m_beforePartitionBarsView->selectionModel()->selectedRows().isEmpty() );
|
||||||
}, this );
|
}, this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user