mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-04 23:37:10 +02:00
Fix going a dir up in the filebrowser
This commit is contained in:
parent
475fdb74b9
commit
8c31ceeb26
@ -155,7 +155,7 @@ bool FileDialog::exec() {
|
||||
} break;
|
||||
case FD_ACTION_GOUP: {
|
||||
string::size_type p = path().rfind("/");
|
||||
if (p==string::npos || path().substr(0,11)!="/card" || p<4)
|
||||
if (p==string::npos || path().compare(0, 5, "/card") != 0 || p<4)
|
||||
return false;
|
||||
else
|
||||
setPath( path().substr(0,p) );
|
||||
|
Loading…
Reference in New Issue
Block a user