mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
[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
2 changed files with 2 additions and 0 deletions
|
@ -169,6 +169,7 @@ fillModel( PackageListModel* model, const QVariantList& items )
|
||||||
model->addPackage( PackageItem( item_map ) );
|
model->addPackage( PackageItem( item_map ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
cDebug() << Logger::SubEntry << "Loaded PackageChooser with" << model->packageCount() << "entries.";
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -71,6 +71,7 @@ PackageChooserViewStep::widget()
|
||||||
connect( m_widget, &PackageChooserPage::selectionChanged, [=]() {
|
connect( m_widget, &PackageChooserPage::selectionChanged, [=]() {
|
||||||
emit nextStatusChanged( this->isNextEnabled() );
|
emit nextStatusChanged( this->isNextEnabled() );
|
||||||
} );
|
} );
|
||||||
|
hookupModel();
|
||||||
}
|
}
|
||||||
return m_widget;
|
return m_widget;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue