From a46133d64b43cf397f9bad8c0e1feb1af6ac60d7 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 12 Sep 2018 16:18:01 +0100 Subject: [PATCH] Replace SetValue() with ChangeValue() to prevent unwanted events. Fixes: lp:1792070 * https://bugs.launchpad.net/kicad/+bug/1792070 --- pcbnew/dialogs/dialog_exchange_footprints.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_exchange_footprints.cpp b/pcbnew/dialogs/dialog_exchange_footprints.cpp index a6d404c4d4..e80105ff56 100644 --- a/pcbnew/dialogs/dialog_exchange_footprints.cpp +++ b/pcbnew/dialogs/dialog_exchange_footprints.cpp @@ -115,8 +115,9 @@ DIALOG_EXCHANGE_FOOTPRINTS::DIALOG_EXCHANGE_FOOTPRINTS( PCB_EDIT_FRAME* aParent, label.Printf( m_matchSpecifiedID->GetLabel(), verb ); m_matchSpecifiedID->SetLabel( label ); + // Use ChangeValue() instead of SetValue() so we don't generate events. if( m_currentModule ) - m_specifiedID->AppendText( FROM_UTF8( m_currentModule->GetFPID().Format().c_str() ) ); + m_specifiedID->ChangeValue( FROM_UTF8( m_currentModule->GetFPID().Format().c_str() ) ); m_specifiedIDBrowseButton->SetBitmap( KiBitmap( small_library_xpm ) ); m_upperSizer->SetEmptyCellSize( wxSize( 0, 0 ) );