[netinstall] Expand groups if requested

main
Adriaan de Groot 5 years ago
parent 4f22a70b08
commit 09006a936d

@ -155,10 +155,14 @@ NetInstallPage::dataIsHere()
ui->groupswidget->header()->setSectionResizeMode( 1, QHeaderView::Stretch );
cDebug() << "Groups info rows=" << m_groups->rowCount();
for ( int i = 0; i < m_groups->rowCount(); ++i )
for ( int i = m_groups->rowCount() - 1; i >= 0; --i )
{
auto index = m_groups->index(i,0);
cDebug() << Logger::SubEntry << i << m_groups->data(index, Qt::DisplayRole);
if ( m_groups->data(index, PackageModel::MetaExpandRole).toBool() )
{
ui->groupswidget->setExpanded(index, true);
}
}
emit checkReady( true );

Loading…
Cancel
Save