From 9e6a4e9d3597257629247c43f17698d355866a9c Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Sun, 25 Aug 2024 16:06:44 -0700 Subject: [PATCH] ARCodeWidget: Remove unnecessary call to OnSelectionChanged Before the call to OnSelectionChange, m_code_edit and m_code_remove are disabled and UpdateList calls m_code_list->clear(), thereby deselecting any selected items. When no items are selected, OnSelectionChange disables m_code_edit and m_code_remove and then returns. Since that was already done, the call doesn't change anything and can be removed. --- Source/Core/DolphinQt/Config/ARCodeWidget.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Source/Core/DolphinQt/Config/ARCodeWidget.cpp b/Source/Core/DolphinQt/Config/ARCodeWidget.cpp index a305786f68..933c6575ef 100644 --- a/Source/Core/DolphinQt/Config/ARCodeWidget.cpp +++ b/Source/Core/DolphinQt/Config/ARCodeWidget.cpp @@ -238,7 +238,6 @@ void ARCodeWidget::LoadCodes() m_code_remove->setEnabled(false); UpdateList(); - OnSelectionChanged(); } void ARCodeWidget::SaveCodes()