mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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+_("/"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user