Clear selection on action change no matter what.

main
Teo Mrnjavac 9 years ago
parent 74ba1df25f
commit 6ce932870f

@ -418,6 +418,9 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
{ {
m_beforePartitionBarsView->selectionModel()-> m_beforePartitionBarsView->selectionModel()->
disconnect( SIGNAL( currentRowChanged( QModelIndex, QModelIndex ) ) ); disconnect( SIGNAL( currentRowChanged( QModelIndex, QModelIndex ) ) );
m_beforePartitionBarsView->selectionModel()->clearSelection();
m_beforePartitionBarsView->selectionModel()->clearCurrentIndex();
switch ( choice ) switch ( choice )
{ {
case Erase: case Erase:
@ -441,9 +444,6 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
case Replace: case Replace:
if ( m_core->isDirty() ) if ( m_core->isDirty() )
{ {
m_beforePartitionBarsView->selectionModel()->clearSelection();
m_beforePartitionBarsView->selectionModel()->clearCurrentIndex();
ScanningDialog::run( QtConcurrent::run( [ = ] ScanningDialog::run( QtConcurrent::run( [ = ]
{ {
QMutexLocker locker( &m_coreMutex ); QMutexLocker locker( &m_coreMutex );

Loading…
Cancel
Save