Fix argument to set_filename() in QMLManager::finishSetup()

The second argument to set_filename() is a boolean, but was given
an empty string. Since an empty string evaluates to true, directly
pass true for clarity.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2017-12-03 19:37:31 +01:00 committed by Dirk Hohndel
parent a3b66b429e
commit fb7116a722

View file

@ -321,7 +321,7 @@ void QMLManager::finishSetup()
// we got an error loading the local file
appendTextToLog(QString("got error %2 when parsing file %1").arg(existing_filename, get_error_string()));
setNotificationText(tr("Error parsing local storage, giving up"));
set_filename(NULL, "");
set_filename(NULL, true);
} else {
// successfully opened the local file, now add thigs to the dive list
consumeFinishedLoad(0);