# HG changeset patch # User Chris Cannam # Date 1290447726 0 # Node ID 7ed57064f29397258a476315fdb20c9d0babf135 # Parent 8a4e26dc31825ff5afb1a2a4eafd3e69510eb2fc * Remove trailing / from dir name (otherwise QFileInfo returns wrong parent path) diff -r 8a4e26dc3182 -r 7ed57064f293 common.cpp --- a/common.cpp Mon Nov 22 17:27:59 2010 +0000 +++ b/common.cpp Mon Nov 22 17:42:06 2010 +0000 @@ -184,6 +184,9 @@ FolderStatus getFolderStatus(QString path) { + if (path != "/" && path.endsWith("/")) { + path = path.left(path.length()-1); + } DEBUG << "getFolderStatus: " << path << endl; QFileInfo fi(path); if (fi.exists()) {