Fixed bug when opening directory; too early return from function.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@533 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-07-09 20:41:52 +00:00
parent b5868a93ba
commit 31e60181ce
+3 -3
View File
@@ -299,10 +299,10 @@ void Package::openSubdir(const String& name) {
}
// find subdirs
for(bool ok = d.GetFirst(&f, wxEmptyString, wxDIR_DIRS | wxDIR_HIDDEN) ; ok ; ok = d.GetNext(&f)) {
if (f.empty() || f.GetChar(0) == _('.')) {
return; // skip directories starting with '.', like ., .. and .svn
if (!f.empty() && f.GetChar(0) != _('.')) {
// skip directories starting with '.', like ., .. and .svn
openSubdir(name+f+_("/"));
}
openSubdir(name+f+_("/"));
}
}