1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-17 21:10:39 +02:00

Fix going a dir up in the filebrowser

This commit is contained in:
Lars-Peter Clausen 2010-05-03 13:45:15 +02:00
parent 475fdb74b9
commit 8c31ceeb26

View File

@ -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) );