← Back to team overview

kicad-developers team mailing list archive

[PATCH] Hide "Power component value text cannot be modified" in libedit

 

When I submitted the patch to allow editing power component value text properties, I didn't realize that the edit dialog base class was subclassed /twice/ - I missed a required edit to the libedit subclass of it, so the "Power component value text cannot be modified!" warning is not properly hidden when editing texts in libedit. Here's a quick patch to fix that.

--
Chris
diff --git a/eeschema/dialogs/dialog_lib_edit_text.cpp b/eeschema/dialogs/dialog_lib_edit_text.cpp
index 778fa89..8d8a519 100644
--- a/eeschema/dialogs/dialog_lib_edit_text.cpp
+++ b/eeschema/dialogs/dialog_lib_edit_text.cpp
@@ -134,6 +134,10 @@ void DIALOG_LIB_EDIT_TEXT::initDlg( )
 
     // Hide the select button as the child dialog classes use this
     m_TextValueSelectButton->Hide();
+
+    // Hide the "Power component value text cannot be modified!" warning
+    m_PowerComponentValues->Show( false );
+    Fit();
 }
 
 

Follow ups