Right use of GetUniqueFileName-method.

This commit is contained in:
Florian Küpper committed 2014-12-04 17:20:51 +01:00
1 parent a6cb64d69c
commit 94ee6c0418
1 file changed
+1 -2
+1 -2
View File
@@ -139,8 +139,7 @@ namespace VocaluxeLib.Profile
if (filename == "")
filename = "1";
FilePath = Path.Combine(CBase.Settings.GetDataPath(), CBase.Settings.GetFolderProfiles());
FilePath = Path.Combine(FilePath, CHelper.GetUniqueFileName(FilePath, filename + ".xml", false));
FilePath = CHelper.GetUniqueFileName(Path.Combine(CBase.Settings.GetDataPath(), CBase.Settings.GetFolderProfiles()), filename + ".xml");
}
var xml = new CXmlSerializer();