From bd7357238fa5dc027d963d49d6b3c4bdd67cefa3 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 11 Nov 2019 18:50:39 +0100 Subject: mobile-widget/qml: correct syntax error introduced in e63257f0e default parameter values is not supported as this syntax was introduced in ECMA-262 6th edition while QML only implements the fifth edition (as of Qt 5.11). remove default parameter and check for undefined instead. Signed-off-by: Jan Iversen --- mobile-widgets/qml/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mobile-widgets/qml/main.qml') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 3a88ad91b..5ff7983c1 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -66,8 +66,8 @@ Kirigami.ApplicationWindow { anchors.centerIn: parent } - function showBusy(msg = "") { - if (msg !== "") + function showBusy(msg) { + if (msg !== undefined) showPassiveNotification(msg, 15000) // show for 15 seconds busy.running = true } -- cgit v1.2.3-70-g09d2