From 45a5f629e5d1627618d3f902cdcaef80cdd3a10a Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Tue, 3 Mar 2020 21:02:50 -0600 Subject: [PATCH] Do a complete refresh of profile list when saving profile --- ProfileManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}