From 94ee6c041880d104cf85b42384b80080f585f105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=BCpper?= Date: Thu, 4 Dec 2014 17:20:51 +0100 Subject: [PATCH] Right use of GetUniqueFileName-method. --- VocaluxeLib/Profile/CProfile.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/VocaluxeLib/Profile/CProfile.cs b/VocaluxeLib/Profile/CProfile.cs index a0ee3ee4..2e168b97 100644 --- a/VocaluxeLib/Profile/CProfile.cs +++ b/VocaluxeLib/Profile/CProfile.cs @@ -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();