From 99bb0c7b85461b66eb6dabbfc9a287298d1b3e43 Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Tue, 26 Apr 2022 22:26:54 +0200 Subject: [PATCH] Remove direct call to Pure Maps, use generic handler for geo: URIs now --- qml/components/messageContent/MessageLocation.qml | 4 +--- translations/harbour-fernschreiber-de.ts | 7 ------- translations/harbour-fernschreiber-en.ts | 7 ------- translations/harbour-fernschreiber-es.ts | 7 ------- translations/harbour-fernschreiber-fi.ts | 7 ------- translations/harbour-fernschreiber-fr.ts | 7 ------- translations/harbour-fernschreiber-hu.ts | 7 ------- translations/harbour-fernschreiber-it.ts | 7 ------- translations/harbour-fernschreiber-pl.ts | 7 ------- translations/harbour-fernschreiber-ru.ts | 7 ------- translations/harbour-fernschreiber-sk.ts | 7 ------- translations/harbour-fernschreiber-sv.ts | 7 ------- translations/harbour-fernschreiber-zh_CN.ts | 7 ------- translations/harbour-fernschreiber.ts | 7 ------- 14 files changed, 1 insertion(+), 94 deletions(-) diff --git a/qml/components/messageContent/MessageLocation.qml b/qml/components/messageContent/MessageLocation.qml index 845f4f0..108578c 100644 --- a/qml/components/messageContent/MessageLocation.qml +++ b/qml/components/messageContent/MessageLocation.qml @@ -29,9 +29,7 @@ MessageContentBase { property string fileExtra; onClicked: { - if(!processLauncher.launchProgram('harbour-pure-maps', ["geo:"+locationData.latitude+","+locationData.longitude])) { - imageNotification.show(qsTr("Install Pure Maps to inspect this location.")); - } + Qt.openUrlExternally("geo:" + locationData.latitude + "," + locationData.longitude); } onLocationDataChanged: updatePicture() onWidthChanged: updatePicture() diff --git a/translations/harbour-fernschreiber-de.ts b/translations/harbour-fernschreiber-de.ts index c4c8635..27a8647 100644 --- a/translations/harbour-fernschreiber-de.ts +++ b/translations/harbour-fernschreiber-de.ts @@ -1050,13 +1050,6 @@ - - MessageLocation - - Install Pure Maps to inspect this location. - Installieren Sie Pure Maps, um diesen Ort zu erkunden. - - MessageOverlayFlickable diff --git a/translations/harbour-fernschreiber-en.ts b/translations/harbour-fernschreiber-en.ts index 2446300..365f816 100644 --- a/translations/harbour-fernschreiber-en.ts +++ b/translations/harbour-fernschreiber-en.ts @@ -1052,13 +1052,6 @@ messages - - MessageLocation - - Install Pure Maps to inspect this location. - Install Pure Maps to inspect this location. - - MessageOverlayFlickable diff --git a/translations/harbour-fernschreiber-es.ts b/translations/harbour-fernschreiber-es.ts index 1e4642e..7c7ff2a 100644 --- a/translations/harbour-fernschreiber-es.ts +++ b/translations/harbour-fernschreiber-es.ts @@ -1050,13 +1050,6 @@ - - MessageLocation - - Install Pure Maps to inspect this location. - Instalar Pure Maps para inspeccionar esta ubicación. - - MessageOverlayFlickable diff --git a/translations/harbour-fernschreiber-fi.ts b/translations/harbour-fernschreiber-fi.ts index 8d6dc50..6e6fc4a 100644 --- a/translations/harbour-fernschreiber-fi.ts +++ b/translations/harbour-fernschreiber-fi.ts @@ -1051,13 +1051,6 @@ - - MessageLocation - - Install Pure Maps to inspect this location. - Asenna Pure Maps tarkastellaksesi sijaintia. - - MessageOverlayFlickable diff --git a/translations/harbour-fernschreiber-fr.ts b/translations/harbour-fernschreiber-fr.ts index 2e0f139..277c7fa 100644 --- a/translations/harbour-fernschreiber-fr.ts +++ b/translations/harbour-fernschreiber-fr.ts @@ -1050,13 +1050,6 @@ - - MessageLocation - - Install Pure Maps to inspect this location. - Installez Pure Maps pour afficher cette localisation. - - MessageOverlayFlickable diff --git a/translations/harbour-fernschreiber-hu.ts b/translations/harbour-fernschreiber-hu.ts index 2272fa8..02e6431 100644 --- a/translations/harbour-fernschreiber-hu.ts +++ b/translations/harbour-fernschreiber-hu.ts @@ -1034,13 +1034,6 @@ - - MessageLocation - - Install Pure Maps to inspect this location. - - - MessageOverlayFlickable diff --git a/translations/harbour-fernschreiber-it.ts b/translations/harbour-fernschreiber-it.ts index 6c18f29..c4793ad 100644 --- a/translations/harbour-fernschreiber-it.ts +++ b/translations/harbour-fernschreiber-it.ts @@ -1050,13 +1050,6 @@ - - MessageLocation - - Install Pure Maps to inspect this location. - Installa Pure Maps per conoscere questo luogo - - MessageOverlayFlickable diff --git a/translations/harbour-fernschreiber-pl.ts b/translations/harbour-fernschreiber-pl.ts index 84b5286..2b12d87 100644 --- a/translations/harbour-fernschreiber-pl.ts +++ b/translations/harbour-fernschreiber-pl.ts @@ -1066,13 +1066,6 @@ - - MessageLocation - - Install Pure Maps to inspect this location. - Zainstaluj Pure Maps, aby sprawdzić tą lokalizację. - - MessageOverlayFlickable diff --git a/translations/harbour-fernschreiber-ru.ts b/translations/harbour-fernschreiber-ru.ts index 74ca82f..9a18e64 100644 --- a/translations/harbour-fernschreiber-ru.ts +++ b/translations/harbour-fernschreiber-ru.ts @@ -1069,13 +1069,6 @@ - - MessageLocation - - Install Pure Maps to inspect this location. - Для просмотра карты, установите Pure Maps. - - MessageOverlayFlickable diff --git a/translations/harbour-fernschreiber-sk.ts b/translations/harbour-fernschreiber-sk.ts index 5ee57cf..f741668 100644 --- a/translations/harbour-fernschreiber-sk.ts +++ b/translations/harbour-fernschreiber-sk.ts @@ -1066,13 +1066,6 @@ - - MessageLocation - - Install Pure Maps to inspect this location. - Pre skontrolovanie tejto polohy nainštalujte Pure Maps. - - MessageOverlayFlickable diff --git a/translations/harbour-fernschreiber-sv.ts b/translations/harbour-fernschreiber-sv.ts index dc2921b..7bdb4dd 100644 --- a/translations/harbour-fernschreiber-sv.ts +++ b/translations/harbour-fernschreiber-sv.ts @@ -1050,13 +1050,6 @@ - - MessageLocation - - Install Pure Maps to inspect this location. - Installera Pure Maps för att inspektera den här platsen. - - MessageOverlayFlickable diff --git a/translations/harbour-fernschreiber-zh_CN.ts b/translations/harbour-fernschreiber-zh_CN.ts index 2dcfdb8..5b3406d 100644 --- a/translations/harbour-fernschreiber-zh_CN.ts +++ b/translations/harbour-fernschreiber-zh_CN.ts @@ -1035,13 +1035,6 @@ - - MessageLocation - - Install Pure Maps to inspect this location. - 请安装 Pure Maps 以插入位置 - - MessageOverlayFlickable diff --git a/translations/harbour-fernschreiber.ts b/translations/harbour-fernschreiber.ts index 8cd37be..7e91f57 100644 --- a/translations/harbour-fernschreiber.ts +++ b/translations/harbour-fernschreiber.ts @@ -1050,13 +1050,6 @@ - - MessageLocation - - Install Pure Maps to inspect this location. - Install Pure Maps to inspect this location. - - MessageOverlayFlickable