1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-22 17:51:34 +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; } break;
case FD_ACTION_GOUP: { case FD_ACTION_GOUP: {
string::size_type p = path().rfind("/"); 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; return false;
else else
setPath( path().substr(0,p) ); setPath( path().substr(0,p) );