diff --git a/src/modules/partition/gui/ReplacePage.cpp b/src/modules/partition/gui/ReplacePage.cpp index 859d13b8b..5e824ad0d 100644 --- a/src/modules/partition/gui/ReplacePage.cpp +++ b/src/modules/partition/gui/ReplacePage.cpp @@ -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 ); }