From 7d389f8024c9bdc7bbb05aa676fb4741f238c548 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 28 Jun 2023 10:19:31 +0100 Subject: [PATCH] Don't try to be smart about enabling the Clear Annotation button. (At a minimum it would need to also handle when the scope changes, but it's not clear we're adding anything by enabling/disabling it to start with.) (cherry picked from commit 2278f5dbca42cfb28d2200e77dc1705387ff4abb) --- eeschema/dialogs/dialog_annotate.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/eeschema/dialogs/dialog_annotate.cpp b/eeschema/dialogs/dialog_annotate.cpp index ea3d979c0c..7c301b6b50 100644 --- a/eeschema/dialogs/dialog_annotate.cpp +++ b/eeschema/dialogs/dialog_annotate.cpp @@ -226,8 +226,6 @@ void DIALOG_ANNOTATE::OnApplyClick( wxCommandEvent& event ) m_Parent->GetCanvas()->Refresh(); - m_btnClear->Enable(); - m_sdbSizer1Cancel->SetDefault(); // Don't close dialog if there are things the user needs to address @@ -248,7 +246,6 @@ void DIALOG_ANNOTATE::OnClearAnnotationClick( wxCommandEvent& event ) bool appendUndo = false; m_Parent->DeleteAnnotation( GetScope(), GetRecursive(), &appendUndo ); - m_btnClear->Enable( false ); }