From 31e60181ce7307904812e876772ccc7dda2b3bcc Mon Sep 17 00:00:00 2001 From: twanvl Date: Mon, 9 Jul 2007 20:41:52 +0000 Subject: [PATCH] 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 --- src/util/io/package.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/io/package.cpp b/src/util/io/package.cpp index 63a261e8..e501a76f 100644 --- a/src/util/io/package.cpp +++ b/src/util/io/package.cpp @@ -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+_("/")); } }