Fix assert in setupUiConditions.

This commit is contained in:
Jeff Young 2021-02-03 14:40:19 +00:00
parent e26c912b86
commit ff3441143e
1 changed files with 3 additions and 2 deletions

View File

@ -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,