mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -04:00
Fix issue with partition selection preview not being updated.
This commit is contained in:
parent
7cd382b39c
commit
5742bbd074
1 changed files with 3 additions and 8 deletions
|
@ -53,9 +53,6 @@ ReplacePage::ReplacePage( PartitionCoreModule* core, QWidget* parent )
|
|||
updateFromCurrentDevice();
|
||||
} );
|
||||
|
||||
connect( m_ui->partitionTreeView->selectionModel(), &QItemSelectionModel::currentRowChanged,
|
||||
this, &ReplacePage::onPartitionViewActivated );
|
||||
|
||||
CALAMARES_RETRANSLATE(
|
||||
m_ui->retranslateUi( this );
|
||||
onPartitionSelected();
|
||||
|
@ -283,11 +280,9 @@ ReplacePage::updateFromCurrentDevice()
|
|||
//updateButtons();
|
||||
// Establish connection here because selection model is destroyed when
|
||||
// model changes
|
||||
connect( m_ui->partitionTreeView->selectionModel(), &QItemSelectionModel::currentChanged,
|
||||
[ this ]( const QModelIndex& index, const QModelIndex& oldIndex )
|
||||
{
|
||||
// updateButtons();
|
||||
} );
|
||||
connect( m_ui->partitionTreeView->selectionModel(), &QItemSelectionModel::currentRowChanged,
|
||||
this, &ReplacePage::onPartitionViewActivated );
|
||||
|
||||
connect( model, &QAbstractItemModel::modelReset, this, &ReplacePage::onPartitionModelReset );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue