Fix issue with partition selection preview not being updated.

main
Teo Mrnjavac 11 years ago
parent 7cd382b39c
commit 5742bbd074

@ -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…
Cancel
Save