From 6a5644d981b227bc8a61e73a1740381cf37f07dc Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 22 Aug 2020 15:44:13 +0100 Subject: [PATCH] Make spice model library contents read-only. Fixes https://gitlab.com/kicad/code/kicad/issues/5062 --- eeschema/dialogs/dialog_spice_model.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eeschema/dialogs/dialog_spice_model.cpp b/eeschema/dialogs/dialog_spice_model.cpp index 79e6d61211..386dc8c4bf 100644 --- a/eeschema/dialogs/dialog_spice_model.cpp +++ b/eeschema/dialogs/dialog_spice_model.cpp @@ -182,6 +182,8 @@ void DIALOG_SPICE_MODEL::Init() m_pwlTimeCol = m_pwlValList->AppendColumn( "Time [s]", wxLIST_FORMAT_LEFT, 100 ); m_pwlValueCol = m_pwlValList->AppendColumn( "Value [V/A]", wxLIST_FORMAT_LEFT, 100 ); + m_libraryContents->SetReadOnly( true ); + m_sdbSizerOK->SetDefault(); // Hide pages that aren't fully implemented yet