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(); updateFromCurrentDevice();
} ); } );
connect( m_ui->partitionTreeView->selectionModel(), &QItemSelectionModel::currentRowChanged,
this, &ReplacePage::onPartitionViewActivated );
CALAMARES_RETRANSLATE( CALAMARES_RETRANSLATE(
m_ui->retranslateUi( this ); m_ui->retranslateUi( this );
onPartitionSelected(); onPartitionSelected();
@ -283,11 +280,9 @@ ReplacePage::updateFromCurrentDevice()
//updateButtons(); //updateButtons();
// Establish connection here because selection model is destroyed when // Establish connection here because selection model is destroyed when
// model changes // model changes
connect( m_ui->partitionTreeView->selectionModel(), &QItemSelectionModel::currentChanged, connect( m_ui->partitionTreeView->selectionModel(), &QItemSelectionModel::currentRowChanged,
[ this ]( const QModelIndex& index, const QModelIndex& oldIndex ) this, &ReplacePage::onPartitionViewActivated );
{
// updateButtons();
} );
connect( model, &QAbstractItemModel::modelReset, this, &ReplacePage::onPartitionModelReset ); connect( model, &QAbstractItemModel::modelReset, this, &ReplacePage::onPartitionModelReset );
} }

Loading…
Cancel
Save