setup: prevent a crash when moving the link code file

This commit is contained in:
Hylke Bons 2012-12-01 17:53:24 +00:00
parent 0757083cdf
commit c538efe885

View file

@ -249,6 +249,10 @@ namespace SparkleShare {
name += "'s";
string new_file_path = Path.Combine (Program.Controller.FoldersPath, name + " link code.txt");
if (File.Exists (new_file_path))
File.Delete (new_file_path);
File.Move (link_code_file_path, new_file_path);
}