diff options
| author | Poommetee Ketson | 2018-02-21 23:31:50 +0700 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-03-28 22:13:39 +0200 |
| commit | 55a66efa38b15e05f14b1786c5ebd097b124fb98 (patch) | |
| tree | f874f31bd7df4149d20570631228af853a4ff537 /drivers/unix/dir_access_unix.cpp | |
| parent | 5eebe510145c5073a748388ea190f8185c76c401 (diff) | |
| download | godot-55a66efa38b15e05f14b1786c5ebd097b124fb98.tar.gz godot-55a66efa38b15e05f14b1786c5ebd097b124fb98.tar.zst godot-55a66efa38b15e05f14b1786c5ebd097b124fb98.zip | |
Fix get_drive (bookmarks) in linux not working
(cherry picked from commit 7e5b10b7d39104055dd4d6dc6c35f1493847c994)
Diffstat (limited to 'drivers/unix/dir_access_unix.cpp')
| -rw-r--r-- | drivers/unix/dir_access_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/dir_access_unix.cpp b/drivers/unix/dir_access_unix.cpp index 394443151..5a4be6df4 100644 --- a/drivers/unix/dir_access_unix.cpp +++ b/drivers/unix/dir_access_unix.cpp @@ -244,7 +244,7 @@ static void _get_drives(List<String> *list) { // Parse only file:// links if (strncmp(string, "file://", 7) == 0) { // Strip any unwanted edges on the strings and push_back if it's not a duplicate - String fpath = String(string + 7).strip_edges(); + String fpath = String(string + 7).strip_edges().split_spaces()[0].percent_decode(); if (!list->find(fpath)) { list->push_back(fpath); } |
