From 5c220f3c53a25682de9ba2a6703bf0094114ce2d Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 8 Jun 2024 09:42:39 -0400 Subject: [PATCH] Fix map copyright link activation The argument was missing, so it wasn't possible to actually click and visit the copyright notices linked on maps. (cherry picked from commit be66ffef0f309bb5b44645eaaa7db494a0e79c48) --- src/qml/LocationChooser.qml | 2 +- src/qml/LocationsPage.qml | 2 +- src/timeline/LocationComponent.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qml/LocationChooser.qml b/src/qml/LocationChooser.qml index db74eceec..38336a60c 100644 --- a/src/qml/LocationChooser.qml +++ b/src/qml/LocationChooser.qml @@ -56,7 +56,7 @@ Components.AbstractMaximizeComponent { Connections { target: mapView.map - function onCopyrightLinkActivated() { + function onCopyrightLinkActivated(link: string) { Qt.openUrlExternally(link); } } diff --git a/src/qml/LocationsPage.qml b/src/qml/LocationsPage.qml index a4c73d5cf..bc08a50fd 100644 --- a/src/qml/LocationsPage.qml +++ b/src/qml/LocationsPage.qml @@ -55,7 +55,7 @@ Kirigami.Page { Connections { target: mapView.map - function onCopyrightLinkActivated() { + function onCopyrightLinkActivated(link: string) { Qt.openUrlExternally(link); } } diff --git a/src/timeline/LocationComponent.qml b/src/timeline/LocationComponent.qml index d97f03965..49c847f9b 100644 --- a/src/timeline/LocationComponent.qml +++ b/src/timeline/LocationComponent.qml @@ -106,7 +106,7 @@ ColumnLayout { } Connections { target: mapView.map - function onCopyrightLinkActivated() { + function onCopyrightLinkActivated(link: string) { Qt.openUrlExternally(link); } }