summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2019-07-02 15:52:23 +0200
committerSimon Rettberg2019-07-02 15:52:23 +0200
commitd64758d876d20d075c177cc6acc2d68aa676b558 (patch)
tree087f8fffcb7e306ec2e6d34418a0a8d515000da5 /src
parentFix inverted check for whether a theme is configured (diff)
downloadvmchooser2-d64758d876d20d075c177cc6acc2d68aa676b558.tar.gz
vmchooser2-d64758d876d20d075c177cc6acc2d68aa676b558.tar.xz
vmchooser2-d64758d876d20d075c177cc6acc2d68aa676b558.zip
Don't bail out if default config doesn't exist
Diffstat (limited to 'src')
-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;
}