From fb7116a722439b0bedacc2e657db6da6f6fa32dd Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 3 Dec 2017 19:37:31 +0100 Subject: 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 --- mobile-widgets/qmlmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile-widgets/qmlmanager.cpp') 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); -- cgit v1.2.3-70-g09d2