Skip to content

Commit

Permalink
FEXQonfig: Recognize file: URLs in addition to file://
Browse files Browse the repository at this point in the history
QUrl::fromLocalFile produces this format for relative paths.
  • Loading branch information
neobrain committed Sep 5, 2024
1 parent de9ab6a commit 1cc5431
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Tools/FEXQonfig/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ ApplicationWindow {
if (str.startsWith("file://")) {
return decodeURIComponent(str.substring(7))
}
if (str.startsWith("file:")) {
return decodeURIComponent(str.substring(5))
}

return str;
}
Expand Down

0 comments on commit 1cc5431

Please sign in to comment.