7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-18 22:21:40 +00:00

Fix unused variable compiler warning

This commit is contained in:
JamesJCode 2025-03-03 20:50:48 +00:00
parent 2afa67f946
commit d9ab3a6228

View File

@ -994,13 +994,9 @@ void DIALOG_LABEL_PROPERTIES::OnLabelFilter( wxCommandEvent& event )
void DIALOG_LABEL_PROPERTIES::OnLabelItemSelected( wxCommandEvent& event )
{
static bool isHandlingSelection = true; // Prevent OnFilter from firing
// Get the selected item's value
wxString selectedValue = m_valueCombo->GetValue();
m_previousLabelText = selectedValue; // Update the previous text to match the selected value
isHandlingSelection = false; // Reset the flag
}