[packagechooser] Connect UI to model
The model needs to be attached to the widget; because of changes in the order that widget() and setConfigurationMap() are called, the model is created earlier, but needs to be connected later.
This commit is contained in:
parent
65e78e5915
commit
61557cf805
@ -169,6 +169,7 @@ fillModel( PackageListModel* model, const QVariantList& items )
|
||||
model->addPackage( PackageItem( item_map ) );
|
||||
}
|
||||
}
|
||||
cDebug() << Logger::SubEntry << "Loaded PackageChooser with" << model->packageCount() << "entries.";
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -71,6 +71,7 @@ PackageChooserViewStep::widget()
|
||||
connect( m_widget, &PackageChooserPage::selectionChanged, [=]() {
|
||||
emit nextStatusChanged( this->isNextEnabled() );
|
||||
} );
|
||||
hookupModel();
|
||||
}
|
||||
return m_widget;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user