diff options
author | jan Iversen <jan@casacondor.com> | 2019-11-11 18:50:39 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-11 20:44:35 +0100 |
commit | bd7357238fa5dc027d963d49d6b3c4bdd67cefa3 (patch) | |
tree | c6a46974a9795e13f6886482f26e9f4256a427cd /mobile-widgets/qml | |
parent | 08db77333b8a6fe7be71f30bf0d5ee15a6bf01f1 (diff) | |
download | subsurface-bd7357238fa5dc027d963d49d6b3c4bdd67cefa3.tar.gz |
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 <jan@casacondor.com>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |