No point in trying to reset and replace if nothing is selected.

This commit is contained in:
Teo Mrnjavac 2015-12-31 14:50:43 +01:00
parent 7e43c66661
commit f01d802d40

View File

@ -460,6 +460,9 @@ void
ChoicePage::doReplaceSelectedPartition( const QModelIndex& current, ChoicePage::doReplaceSelectedPartition( const QModelIndex& current,
const QModelIndex& previous ) const QModelIndex& previous )
{ {
if ( !current.isValid() )
return;
ScanningDialog::run( QtConcurrent::run( [ = ] ScanningDialog::run( QtConcurrent::run( [ = ]
{ {
QMutexLocker locker( &m_coreMutex ); QMutexLocker locker( &m_coreMutex );