[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:
Adriaan de Groot 2021-04-23 12:41:50 +02:00
parent 65e78e5915
commit 61557cf805
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -71,6 +71,7 @@ PackageChooserViewStep::widget()
connect( m_widget, &PackageChooserPage::selectionChanged, [=]() {
emit nextStatusChanged( this->isNextEnabled() );
} );
hookupModel();
}
return m_widget;
}