Pass current index by value.
This commit is contained in:
parent
aaf85407fb
commit
90bb64fb17
@ -661,7 +661,7 @@ ChoicePage::doReplaceSelectedPartition( const QModelIndex& current )
|
|||||||
// NOTE: using by-ref captures because we need to write homePartitionPath and
|
// NOTE: using by-ref captures because we need to write homePartitionPath and
|
||||||
// doReuseHomePartition *after* the device revert, for later use.
|
// doReuseHomePartition *after* the device revert, for later use.
|
||||||
ScanningDialog::run( QtConcurrent::run(
|
ScanningDialog::run( QtConcurrent::run(
|
||||||
[ this, ¤t, &homePartitionPath, &doReuseHomePartition ]
|
[ this, current, &homePartitionPath, &doReuseHomePartition ]
|
||||||
{
|
{
|
||||||
QMutexLocker locker( &m_coreMutex );
|
QMutexLocker locker( &m_coreMutex );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user