diff options
author | Simon Rettberg | 2019-07-02 15:52:23 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-07-02 15:52:23 +0200 |
commit | d64758d876d20d075c177cc6acc2d68aa676b558 (patch) | |
tree | 087f8fffcb7e306ec2e6d34418a0a8d515000da5 /src | |
parent | Fix inverted check for whether a theme is configured (diff) | |
download | vmchooser2-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.cpp | 2 |
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; } |