And use it.

main
Teo Mrnjavac 9 years ago
parent 5df78cc513
commit 73be443e22

@ -427,8 +427,11 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
QMutexLocker locker( &m_coreMutex ); QMutexLocker locker( &m_coreMutex );
m_core->revertDevice( selectedDevice() ); m_core->revertDevice( selectedDevice() );
PartitionActions::doAutopartition( m_core, selectedDevice() );
} ), } ),
[=]
{
PartitionActions::doAutopartition( m_core, selectedDevice() );
},
this ); this );
} }
@ -444,6 +447,7 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
QMutexLocker locker( &m_coreMutex ); QMutexLocker locker( &m_coreMutex );
m_core->revertDevice( selectedDevice() ); m_core->revertDevice( selectedDevice() );
} ), } ),
[]{},
this ); this );
} }
@ -483,7 +487,7 @@ ChoicePage::doReplaceSelectedPartition( const QModelIndex& current,
PartitionActions::doReplacePartition( m_core, PartitionActions::doReplacePartition( m_core,
selectedDevice(), selectedDevice(),
partition ); partition );
} ), this ); } ), []{}, this );
} }

@ -206,6 +206,7 @@ PartitionPage::onRevertClicked()
m_ui->deviceComboBox->setCurrentIndex( oldIndex ); m_ui->deviceComboBox->setCurrentIndex( oldIndex );
updateFromCurrentDevice(); updateFromCurrentDevice();
} ), } ),
[]{},
this ); this );
} }

Loading…
Cancel
Save