Hi Andreas!
On 11/1/20 2:36 PM, Alexander Weisse wrote:
> since 1.20.0-2~bpo10+1 didn't start the GUI I tried backporting 1.20.2-1 to
> buster.
>
> Backporting worked, but the GUI still didn't start. However, the output of
> 'AusweisApp2 --show' was detailed enough to locate the problem: one of the qml
> files contains a function with default values for arguments, which is not yet
> supported by Qt 5.11 in buster.
>
> The following small patch fixes the issue, i.e., version 1.20.2-1 can be
> backported
> and the GUI starts on buster:
>
> --- ausweisapp2-1.20.2.orig/resources/qml/Governikus/Global/NumberField.qml
> +++ ausweisapp2-1.20.2/resources/qml/Governikus/Global/NumberField.qml
> @@ -40,7 +40,8 @@ Item {
> + SettingsModel.translationTrigger
> Keys.onPressed: event.accepted = root.handleKeyEvent(event.key,
> event.modifiers)
>
> - function handleKeyEvent(eventKey, eventModifiers = Qt.NoModifier) {
> + function handleKeyEvent(eventKey, eventModifiers) {
> + if (eventModifiers === undefined) eventModifiers =
> Qt.NoModifier
> if (eventKey >= Qt.Key_0 && eventKey <= Qt.Key_9) {
> root.append(eventKey - Qt.Key_0)
> }
Thanks for the patch. Let's put upstream in the loop and see what they have to
say.
If there are no concerns, I can include your patch in Debian. I have to fix some
dependencies in the unstable package anyway which prevent the GUI from starting
on
systems which don't have the various QML packages pre-installed.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - [email protected]
`. `' Freie Universitaet Berlin - [email protected]
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913