[netinstall] When starting to load YAML data, set appropriate status
- if a list is required, then we don't have data yet and should complain; otherwise we're OK even if no data is ever added.
This commit is contained in:
parent
5af37b0be3
commit
294d07db7b
@ -152,6 +152,7 @@ Config::setConfigurationMap( const QVariantMap& configurationMap )
|
|||||||
if ( m_queue && m_queue->count() > 0 )
|
if ( m_queue && m_queue->count() > 0 )
|
||||||
{
|
{
|
||||||
cDebug() << "Loading netinstall from" << m_queue->count() << "alternate sources.";
|
cDebug() << "Loading netinstall from" << m_queue->count() << "alternate sources.";
|
||||||
|
setStatus( required() ? Status::FailedNoData : Status::Ok );
|
||||||
connect( m_queue, &LoaderQueue::done, this, &Config::loadingDone );
|
connect( m_queue, &LoaderQueue::done, this, &Config::loadingDone );
|
||||||
m_queue->load();
|
m_queue->load();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user