mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-01 11:25:36 -04:00
[locale] Add test for Config initialization
- needs some massaging because Config otherwise depends on ModuleManager which is a UI class (for the Reasons), but we already have a BUILD_AS_TEST define for that purpose. - demonstrate a nullptr deref.
This commit is contained in:
parent
04e53be934
commit
b36ad4c7f4
3 changed files with 18 additions and 1 deletions
|
@ -436,11 +436,13 @@ Config::setConfigurationMap( const QVariantMap& configurationMap )
|
|||
getStartingTimezone( configurationMap, m_startingTimezone );
|
||||
getGeoIP( configurationMap, m_geoip );
|
||||
|
||||
#ifndef BUILD_AS_TEST
|
||||
if ( m_geoip && m_geoip->isValid() )
|
||||
{
|
||||
connect(
|
||||
Calamares::ModuleManager::instance(), &Calamares::ModuleManager::modulesLoaded, this, &Config::startGeoIP );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Calamares::JobList
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue