From b468254d731bb467492006c9fc9d14ed2719033f Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sat, 17 Aug 2013 17:47:23 +0200 Subject: [PATCH] Fix #1163 --- simgear/io/SVNDirectory.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(); } -- 2.39.5