From ff3441143efef0e786261a785489d9affb31dd42 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 3 Feb 2021 14:40:19 +0000 Subject: [PATCH] Fix assert in setupUiConditions. --- eeschema/symbol_editor/symbol_edit_frame.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eeschema/symbol_editor/symbol_edit_frame.cpp b/eeschema/symbol_editor/symbol_edit_frame.cpp index 69da158cd1..5ff05d2da1 100644 --- a/eeschema/symbol_editor/symbol_edit_frame.cpp +++ b/eeschema/symbol_editor/symbol_edit_frame.cpp @@ -361,8 +361,9 @@ void SYMBOL_EDIT_FRAME::setupUIConditions() auto canEditLib = [this] ( const SELECTION& sel ) { - return !getTargetLibId().GetLibNickname().empty() && - !m_libMgr->IsLibraryReadOnly( getTargetLibId().GetLibNickname() ); + return !getTargetLibId().GetLibNickname().empty() + && m_libMgr->LibraryExists( getTargetLibId().GetLibNickname() ) + && !m_libMgr->IsLibraryReadOnly( getTargetLibId().GetLibNickname() ); }; mgr->SetConditions( ACTIONS::saveAll,