Version 2.1.0 hotfix: Error on entering existing profile name in text edit and save

willneedit [06-30-17 - 17:05]
Version 2.1.0 hotfix: Error on entering existing profile name in text edit and save
Filename
UI/ProfileEdit.lua
diff --git a/UI/ProfileEdit.lua b/UI/ProfileEdit.lua
index 6c3684b..a1b3644 100644
--- a/UI/ProfileEdit.lua
+++ b/UI/ProfileEdit.lua
@@ -126,7 +126,8 @@ end

 function PE:BtnSaveClicked()
 	local profiles = IM.Profiles
-	if not PE.reverseProfileList[PE.selectedName] then
+  PE.selectedProfile = PE.reverseProfileList[PE.selectedName]
+	if not PE.selectedProfile then
 		PE.selectedProfile = #profiles + 1
 	end