diff options
author | Alexander Tkachev | 2016-07-04 12:05:10 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | e388accda3d4af43c4ae5f060719c4f31bc5cce5 (patch) | |
tree | 6981d765bd11cd9e6dae587df08d642b373950de /gui/remotebrowser.cpp | |
parent | 72b82bd2aa66223f6c740e7bf6dce316b2145b15 (diff) | |
download | scummvm-rg350-e388accda3d4af43c4ae5f060719c4f31bc5cce5.tar.gz scummvm-rg350-e388accda3d4af43c4ae5f060719c4f31bc5cce5.tar.bz2 scummvm-rg350-e388accda3d4af43c4ae5f060719c4f31bc5cce5.zip |
GUI: Fix "Go up"
OneDrive and Google Drive paths do not start with '/', so one was unable
to go up to root.
Diffstat (limited to 'gui/remotebrowser.cpp')
-rw-r--r-- | gui/remotebrowser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/remotebrowser.cpp b/gui/remotebrowser.cpp index 37a51d5341..a1b0e3f098 100644 --- a/gui/remotebrowser.cpp +++ b/gui/remotebrowser.cpp @@ -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; } |