Clear selection on action change no matter what.
This commit is contained in:
parent
74ba1df25f
commit
6ce932870f
@ -418,6 +418,9 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
|
||||
{
|
||||
m_beforePartitionBarsView->selectionModel()->
|
||||
disconnect( SIGNAL( currentRowChanged( QModelIndex, QModelIndex ) ) );
|
||||
m_beforePartitionBarsView->selectionModel()->clearSelection();
|
||||
m_beforePartitionBarsView->selectionModel()->clearCurrentIndex();
|
||||
|
||||
switch ( choice )
|
||||
{
|
||||
case Erase:
|
||||
@ -441,9 +444,6 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
|
||||
case Replace:
|
||||
if ( m_core->isDirty() )
|
||||
{
|
||||
m_beforePartitionBarsView->selectionModel()->clearSelection();
|
||||
m_beforePartitionBarsView->selectionModel()->clearCurrentIndex();
|
||||
|
||||
ScanningDialog::run( QtConcurrent::run( [ = ]
|
||||
{
|
||||
QMutexLocker locker( &m_coreMutex );
|
||||
|
Loading…
Reference in New Issue
Block a user