Mercurial > hg > easyhg
diff common.cpp @ 85:7ed57064f293
* Remove trailing / from dir name (otherwise QFileInfo returns wrong parent path)
author | Chris Cannam |
---|---|
date | Mon, 22 Nov 2010 17:42:06 +0000 |
parents | 8a4e26dc3182 |
children | 1928f9b408e6 |
line wrap: on
line diff
--- 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()) {