mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 18:35:37 -04:00
clearJobs is enough on replace partition selection.
This commit is contained in:
parent
ad2ce6b6d4
commit
65278605fe
1 changed files with 3 additions and 2 deletions
|
@ -453,7 +453,8 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
|
||||||
connect( m_beforePartitionBarsView->selectionModel(), &QItemSelectionModel::currentRowChanged,
|
connect( m_beforePartitionBarsView->selectionModel(), &QItemSelectionModel::currentRowChanged,
|
||||||
this, [ this ]( const QModelIndex& current, const QModelIndex& previous )
|
this, [ this ]( const QModelIndex& current, const QModelIndex& previous )
|
||||||
{
|
{
|
||||||
m_core->revertDevice( selectedDevice() );
|
if ( m_core->isDirty() )
|
||||||
|
m_core->clearJobs();
|
||||||
|
|
||||||
// We can't use the PartitionPtrRole because we need to make changes to the
|
// We can't use the PartitionPtrRole because we need to make changes to the
|
||||||
// main DeviceModel, not the immutable copy.
|
// main DeviceModel, not the immutable copy.
|
||||||
|
@ -465,7 +466,7 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
|
||||||
selectedDevice(),
|
selectedDevice(),
|
||||||
partition );
|
partition );
|
||||||
} );
|
} );
|
||||||
|
break;
|
||||||
case NoChoice:
|
case NoChoice:
|
||||||
case Manual:
|
case Manual:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue