summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/config.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.cpp b/src/config.cpp
index 15d2087..0d4a72d 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -108,6 +108,8 @@ bool Config::init(const QCoreApplication& app, const ConfigOption* const configF
if (configFileName != nullptr) {
QString file(parser.value(configFileName->cmdLine));
if (!QFileInfo(file).exists()) {
+ if (!parser.isSet(configFileName->cmdLine))
+ return true; // No explicit config file passed, ignore if default file doesn't exist
qDebug() << "--config file" << file << "does not exist!";
return false;
}