Fix decoding in recently opened menu

Fixes #7820
This commit is contained in:
Jaime van Kessel 2020-05-27 15:30:22 +02:00
parent e0734ff130
commit b58730a70c
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -24,7 +24,7 @@ Menu
{ {
text: text:
{ {
var path = modelData.toString() var path = decodeURIComponent(modelData.toString())
return (index + 1) + ". " + path.slice(path.lastIndexOf("/") + 1); return (index + 1) + ". " + path.slice(path.lastIndexOf("/") + 1);
} }
onTriggered: onTriggered: