From eaf89ab23b9d16481f5cdaefcfb7f43e3fc17ab1 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 18 Mar 2018 16:25:48 +0000 Subject: [PATCH] Avoid use of Connections.enabled for Qt < 5.7 compat --- src/GUI/qml/SettingControl.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/GUI/qml/SettingControl.qml b/src/GUI/qml/SettingControl.qml index e0f52fb6c..ab272a8d8 100644 --- a/src/GUI/qml/SettingControl.qml +++ b/src/GUI/qml/SettingControl.qml @@ -33,10 +33,13 @@ Item { } Connections { - target: _config // only invoke apply if 'option' is set, otherwise we assume // there is specialised apply code - enabled: root.option != "" + target: root.option != "" ? _config : null + + // this requires Qt 5.7, so we simulate it + // enabled: root.option != "" + onCollect: apply(); }