From b00871ad77906225e98e9c86b8df43776aa0fe99 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 1 Oct 2023 20:17:53 -0400 Subject: [PATCH] Unbind events in DIALOG_PCM destructor Maybe fixes KICAD-KR --- kicad/pcm/dialogs/dialog_pcm.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kicad/pcm/dialogs/dialog_pcm.cpp b/kicad/pcm/dialogs/dialog_pcm.cpp index eaa7f88847..172d1a6ff8 100644 --- a/kicad/pcm/dialogs/dialog_pcm.cpp +++ b/kicad/pcm/dialogs/dialog_pcm.cpp @@ -184,6 +184,10 @@ DIALOG_PCM::DIALOG_PCM( wxWindow* parent, std::shared_ptrUnbind( wxEVT_UPDATE_UI, &DIALOG_PCM::OnUpdateEventButtons, this ); + m_sdbSizer1Apply->Unbind( wxEVT_UPDATE_UI, &DIALOG_PCM::OnUpdateEventButtons, this ); + m_pcm->SaveInstalledPackages(); m_pcm->SetDialogWindow( nullptr ); m_pcm->RunBackgroundUpdate();