Fix assert in setupUiConditions.
This commit is contained in:
parent
e26c912b86
commit
ff3441143e
|
@ -361,8 +361,9 @@ void SYMBOL_EDIT_FRAME::setupUIConditions()
|
||||||
auto canEditLib =
|
auto canEditLib =
|
||||||
[this] ( const SELECTION& sel )
|
[this] ( const SELECTION& sel )
|
||||||
{
|
{
|
||||||
return !getTargetLibId().GetLibNickname().empty() &&
|
return !getTargetLibId().GetLibNickname().empty()
|
||||||
!m_libMgr->IsLibraryReadOnly( getTargetLibId().GetLibNickname() );
|
&& m_libMgr->LibraryExists( getTargetLibId().GetLibNickname() )
|
||||||
|
&& !m_libMgr->IsLibraryReadOnly( getTargetLibId().GetLibNickname() );
|
||||||
};
|
};
|
||||||
|
|
||||||
mgr->SetConditions( ACTIONS::saveAll,
|
mgr->SetConditions( ACTIONS::saveAll,
|
||||||
|
|
Loading…
Reference in New Issue