diff --git a/ProfileManager.cpp b/ProfileManager.cpp index 69797827..d5bd2841 100644 --- a/ProfileManager.cpp +++ b/ProfileManager.cpp @@ -62,9 +62,9 @@ bool ProfileManager::SaveProfile(std::string profile_name) controller_file.close(); /*---------------------------------------------------------*\ - | Add the new file to the profile list | + | Update the profile list | \*---------------------------------------------------------*/ - profile_list.push_back(filename); + UpdateProfileList(); return(true); } @@ -257,4 +257,4 @@ void ProfileManager::UpdateProfileList() profile_file.close(); } } -} \ No newline at end of file +}