Right use of GetUniqueFileName-method.
This commit is contained in:
1 parent
a6cb64d69c
commit
94ee6c0418
1 file changed
+1
-2
@@ -139,8 +139,7 @@ namespace VocaluxeLib.Profile
|
|||||||
if (filename == "")
|
if (filename == "")
|
||||||
filename = "1";
|
filename = "1";
|
||||||
|
|
||||||
FilePath = Path.Combine(CBase.Settings.GetDataPath(), CBase.Settings.GetFolderProfiles());
|
FilePath = CHelper.GetUniqueFileName(Path.Combine(CBase.Settings.GetDataPath(), CBase.Settings.GetFolderProfiles()), filename + ".xml");
|
||||||
FilePath = Path.Combine(FilePath, CHelper.GetUniqueFileName(FilePath, filename + ".xml", false));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var xml = new CXmlSerializer();
|
var xml = new CXmlSerializer();
|
||||||
|
|||||||
Reference in new issue
Block a user