From 898873157f5bf4b4cf6546df61e01d1f12ec6b42 Mon Sep 17 00:00:00 2001 From: William JCM Date: Sat, 10 Jul 2021 16:49:47 +0200 Subject: [PATCH] SaveTool: deleting a profile is an unsafe action. --- src/SaveTool/SaveTool_ProfileManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SaveTool/SaveTool_ProfileManager.cpp b/src/SaveTool/SaveTool_ProfileManager.cpp index d0d2772..4d5e21b 100644 --- a/src/SaveTool/SaveTool_ProfileManager.cpp +++ b/src/SaveTool/SaveTool_ProfileManager.cpp @@ -98,7 +98,7 @@ void SaveTool::drawProfileManager() { ImGui::OpenPopup(backup_popup_id); } ImGui::SameLine(0.0f, 2.0f); - if(ImGui::SmallButton(ICON_FA_TRASH_ALT)) { + if(drawUnsafeWidget(ImGui::SmallButton, ICON_FA_TRASH_ALT)) { profile_index = i; ImGui::OpenPopup(delete_popup_id); }