summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-07-02 11:10:41 +0200
committerSimon Rettberg2019-07-02 11:10:41 +0200
commitd51a540e39a34e16b3d9bbe53348d9f2211ef03d (patch)
tree864dedaaf3d5a28728bc1035efa7b7a34891f1dc
parentRe-enable 64Bit check for VBox - turns out it is possible (diff)
downloadvmchooser2-d51a540e39a34e16b3d9bbe53348d9f2211ef03d.tar.gz
vmchooser2-d51a540e39a34e16b3d9bbe53348d9f2211ef03d.tar.xz
vmchooser2-d51a540e39a34e16b3d9bbe53348d9f2211ef03d.zip
Fix loading default config file if --config is missing
-rw-r--r--src/config.cpp2
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!";