diff options
author | Simon Rettberg | 2019-07-02 11:10:41 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-07-02 11:10:41 +0200 |
commit | d51a540e39a34e16b3d9bbe53348d9f2211ef03d (patch) | |
tree | 864dedaaf3d5a28728bc1035efa7b7a34891f1dc | |
parent | Re-enable 64Bit check for VBox - turns out it is possible (diff) | |
download | vmchooser2-d51a540e39a34e16b3d9bbe53348d9f2211ef03d.tar.gz vmchooser2-d51a540e39a34e16b3d9bbe53348d9f2211ef03d.tar.xz vmchooser2-d51a540e39a34e16b3d9bbe53348d9f2211ef03d.zip |
Fix loading default config file if --config is missing
-rw-r--r-- | src/config.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.cpp b/src/config.cpp index c338ed7..15d2087 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -105,7 +105,7 @@ bool Config::init(const QCoreApplication& app, const ConfigOption* const configF parser.addHelpOption(); parser.addVersionOption(); parser.process(app); - if (configFileName != nullptr && parser.isSet(configFileName->cmdLine)) { + if (configFileName != nullptr) { QString file(parser.value(configFileName->cmdLine)); if (!QFileInfo(file).exists()) { qDebug() << "--config file" << file << "does not exist!"; |