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:
parent
a3b66b429e
commit
fb7116a722
@ -321,7 +321,7 @@ void QMLManager::finishSetup()
|
|||||||
// we got an error loading the local file
|
// we got an error loading the local file
|
||||||
appendTextToLog(QString("got error %2 when parsing file %1").arg(existing_filename, get_error_string()));
|
appendTextToLog(QString("got error %2 when parsing file %1").arg(existing_filename, get_error_string()));
|
||||||
setNotificationText(tr("Error parsing local storage, giving up"));
|
setNotificationText(tr("Error parsing local storage, giving up"));
|
||||||
set_filename(NULL, "");
|
set_filename(NULL, true);
|
||||||
} else {
|
} else {
|
||||||
// successfully opened the local file, now add thigs to the dive list
|
// successfully opened the local file, now add thigs to the dive list
|
||||||
consumeFinishedLoad(0);
|
consumeFinishedLoad(0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user