From d6d2b19620e78685ad2606670fc79d974454a115 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Thu, 8 Jun 2017 17:15:25 +0200 Subject: [PATCH] fix(ui/modules/Linphone/Notifications/NotificationReceivedFileMessage): open folder if no handler --- .../Notifications/NotificationReceivedFileMessage.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linphone-desktop/ui/modules/Linphone/Notifications/NotificationReceivedFileMessage.qml b/linphone-desktop/ui/modules/Linphone/Notifications/NotificationReceivedFileMessage.qml index bbf238e94..26740bf99 100644 --- a/linphone-desktop/ui/modules/Linphone/Notifications/NotificationReceivedFileMessage.qml +++ b/linphone-desktop/ui/modules/Linphone/Notifications/NotificationReceivedFileMessage.qml @@ -71,7 +71,10 @@ Notification { hoverEnabled: true onClicked: notification._close(function () { - Qt.openUrlExternally(Utils.getUriFromSystemPath(notification._fileUri)) + var uri = Utils.getUriFromSystemPath(notification._fileUri) + if (!Qt.openUrlExternally(uri)) { + Qt.openUrlExternally(Utils.dirname(uri)) + } }) } }