fix(ui/modules/Linphone/Notifications/NotificationReceivedFileMessage): open folder if no handler

This commit is contained in:
Ronan Abhamon 2017-06-08 17:15:25 +02:00
parent 94ebade4ed
commit d6d2b19620

View file

@ -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))
}
})
}
}