mobile-widget: correct set of default_cylinder

set_default_cylinder is accepted, because it is defined in Qt Meta system,
however the call is never carried out, because the Q_INVOKE macro is missing

Change PrefGeneral.set_default_cylinder(...) which is a function call
to PrefGeneral.default_cylinder = ... which is a builtin assignment

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-09-12 19:54:30 +02:00 committed by Dirk Hohndel
parent 8c0023e151
commit 1dd7d9df3a

View file

@ -387,7 +387,7 @@ Kirigami.ScrollablePage {
inputMethodHints: Qt.ImhNoPredictiveText
Layout.fillWidth: true
onActivated: {
PrefGeneral.set_default_cylinder(defaultCylinderBox.currentText)
PrefGeneral.default_cylinder = defaultCylinderBox.currentText
}
}
}