mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 09:19:01 +00:00
Changed: Try to load config file everytime, see #279
This commit is contained in:
parent
b003ef8629
commit
3e3dbe3595
1 changed files with 6 additions and 1 deletions
|
@ -49,7 +49,12 @@ CConfigFile::~CConfigFile()
|
|||
bool CConfigFile::load()
|
||||
{
|
||||
// load default values
|
||||
return load(m_defaultConfigPath) || load(m_configPath);
|
||||
if (!load(m_defaultConfigPath)) return false;
|
||||
|
||||
// ignore return value, since we'll always have valid values
|
||||
load(m_configPath);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CConfigFile::load(const QString &filename)
|
||||
|
|
Loading…
Reference in a new issue