From: Thomas Geymayer Date: Sat, 17 Aug 2013 15:47:23 +0000 (+0200) Subject: Fix #1163 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b468254d731bb467492006c9fc9d14ed2719033f;p=simgear.git Fix #1163 --- diff --git a/simgear/io/SVNDirectory.cxx b/simgear/io/SVNDirectory.cxx index cc572fc1..923993ac 100644 --- a/simgear/io/SVNDirectory.cxx +++ b/simgear/io/SVNDirectory.cxx @@ -247,8 +247,6 @@ void SVNDirectory::deleteChildByName(const std::string& nm) } SGPath path = fsDir().file(nm); - dav->removeChild(child); - delete child; if (child->isCollection()) { Dir d(path); @@ -264,7 +262,10 @@ void SVNDirectory::deleteChildByName(const std::string& nm) } else { path.remove(); } - + + dav->removeChild(child); + delete child; + writeCache(); }