diff options
-rw-r--r-- | common/config-manager.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/common/config-manager.cpp b/common/config-manager.cpp index 9bef6b37a6..abc5bfb52d 100644 --- a/common/config-manager.cpp +++ b/common/config-manager.cpp @@ -61,13 +61,18 @@ void ConfigManager::loadDefaultConfigFile() { _filename.clear(); // clear the filename to indicate that we are using the default config file // ... load it, if available ... - if (stream) + if (stream) { loadFromStream(*stream); - // ... and close it again. - delete stream; + // ... and close it again. + delete stream; + + } else { + // No config file -> create new one! + printf("Default configuration file missing, creating a new one\n"); - flushToDisk(); + flushToDisk(); + } } void ConfigManager::loadConfigFile(const String &filename) { |