mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
Do not try to dereference m_viewStep if it's invalid
This commit is contained in:
parent
738427130b
commit
df89a391c4
1 changed files with 7 additions and 9 deletions
|
@ -51,16 +51,14 @@ ViewModule::loadSelf()
|
||||||
if ( m_loader )
|
if ( m_loader )
|
||||||
{
|
{
|
||||||
m_viewStep = qobject_cast< ViewStep* >( m_loader->instance() );
|
m_viewStep = qobject_cast< ViewStep* >( m_loader->instance() );
|
||||||
|
if ( !m_viewStep )
|
||||||
|
{
|
||||||
|
cLog() << Q_FUNC_INFO << m_loader->errorString();
|
||||||
|
return;
|
||||||
|
}
|
||||||
m_viewStep->setConfigurationMap( m_configurationMap );
|
m_viewStep->setConfigurationMap( m_configurationMap );
|
||||||
if ( m_viewStep )
|
ViewManager::instance()->addViewStep( m_viewStep );
|
||||||
{
|
m_loaded = true;
|
||||||
ViewManager::instance()->addViewStep( m_viewStep );
|
|
||||||
m_loaded = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
cDebug() << Q_FUNC_INFO << m_loader->errorString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue