Mercurial > hg > easyhg
changeset 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 | 89f793fbedda |
files | common.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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()) {