mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 23:43:34 +00:00
GUI: Fix "Go up"
OneDrive and Google Drive paths do not start with '/', so one was unable to go up to root.
This commit is contained in:
parent
72b82bd2aa
commit
e388accda3
@ -183,7 +183,7 @@ void RemoteBrowserDialog::goUp() {
|
||||
return;
|
||||
}
|
||||
for (int i = path.size()-1; i >= 0; --i)
|
||||
if (path[i] == '/' || path[i] == '\\') {
|
||||
if (i == 0 || path[i] == '/' || path[i] == '\\') {
|
||||
path.erase(i);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user