From 90bb64fb1728c7e1a684b34baffda4ae25d9b999 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 20 Jul 2016 17:29:54 +0200 Subject: [PATCH] Pass current index by value. --- src/modules/partition/gui/ChoicePage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );