mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 18:05:36 -04:00
Manage next button status.
This commit is contained in:
parent
08d1c89f21
commit
59ec549617
1 changed files with 6 additions and 1 deletions
|
@ -451,6 +451,7 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
|
|||
[]{},
|
||||
this );
|
||||
}
|
||||
setNextEnabled( m_beforePartitionBarsView->selectionModel()->currentIndex().isValid() );
|
||||
|
||||
connect( m_beforePartitionBarsView->selectionModel(), SIGNAL( currentRowChanged( QModelIndex, QModelIndex ) ),
|
||||
this, SLOT( doReplaceSelectedPartition( QModelIndex, QModelIndex ) ),
|
||||
|
@ -488,7 +489,11 @@ ChoicePage::doReplaceSelectedPartition( const QModelIndex& current,
|
|||
PartitionActions::doReplacePartition( m_core,
|
||||
selectedDevice(),
|
||||
partition );
|
||||
} ), []{}, this );
|
||||
} ),
|
||||
[]
|
||||
{
|
||||
setNextEnabled( m_beforePartitionBarsView->selectionModel()->currentIndex().isValid() );
|
||||
}, this );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue