Library Editor: disable 'save component' for read-only libraries

This commit is contained in:
Maciej Suminski 2017-11-13 23:21:08 +01:00
parent 33242fd111
commit 076633bb5e
1 changed files with 2 additions and 1 deletions

View File

@ -520,7 +520,8 @@ void LIB_EDIT_FRAME::OnUpdatePartModified( wxUpdateUIEvent& aEvent )
const wxString& libName = libId.GetLibNickname();
aEvent.Enable( !partName.IsEmpty() && !libName.IsEmpty()
&& m_libMgr->IsPartModified( partName, libName ) );
&& m_libMgr->IsPartModified( partName, libName )
&& ( aEvent.GetId() == ID_LIBEDIT_REVERT_PART || !m_libMgr->IsLibraryReadOnly( libName ) ) );
}