diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 62f08ed3f..1fcaab6ac 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -661,7 +661,7 @@ ChoicePage::doReplaceSelectedPartition( const QModelIndex& current ) // NOTE: using by-ref captures because we need to write homePartitionPath and // doReuseHomePartition *after* the device revert, for later use. ScanningDialog::run( QtConcurrent::run( - [ this, ¤t, &homePartitionPath, &doReuseHomePartition ] + [ this, current, &homePartitionPath, &doReuseHomePartition ] { QMutexLocker locker( &m_coreMutex );