summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-12-03 19:37:31 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-03 19:07:03 -0800
commitfb7116a722439b0bedacc2e657db6da6f6fa32dd (patch)
treed9e3e1ccdc6121461dc45e606b6ba5b071f4a7c5
parenta3b66b429e704b61ea62b0dcecdf035fbe56c74d (diff)
downloadsubsurface-fb7116a722439b0bedacc2e657db6da6f6fa32dd.tar.gz
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>
-rw-r--r--mobile-widgets/qmlmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 650ebd480..bd7314d34 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -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);