Fix #624: Can´t rename network via webinterface

This commit is contained in:
J-P Nurmi
2014-08-19 20:59:19 +02:00
parent 0065506ff6
commit 2e42f3103c
5 changed files with 36 additions and 24 deletions

View File

@@ -635,14 +635,7 @@ void CClient::UserCommand(CString& sLine) {
}
}
CFile fOldNVFile = CFile(sOldModPath + "/.registry");
if (!fOldNVFile.Exists()) {
continue;
}
if (!CFile::Exists(sNewModPath)) {
CDir::MakeDir(sNewModPath);
}
fOldNVFile.Copy(sNewModPath + "/.registry");
(*i)->MoveRegistry(sNewModPath);
}
CString sNetworkAddError;