change for macOSX compatibility
This commit is contained in:
parent
b24bbab0af
commit
a56c02e94b
|
@ -428,11 +428,13 @@ void WinEDA_SchematicFrame::OnUpdatePaste( wxUpdateUIEvent& event )
|
||||||
|
|
||||||
void WinEDA_SchematicFrame::OnUpdateSchematicUndo( wxUpdateUIEvent& event )
|
void WinEDA_SchematicFrame::OnUpdateSchematicUndo( wxUpdateUIEvent& event )
|
||||||
{
|
{
|
||||||
|
if ( GetScreen() )
|
||||||
event.Enable( (GetScreen()->m_UndoList) ? true : false );
|
event.Enable( (GetScreen()->m_UndoList) ? true : false );
|
||||||
}
|
}
|
||||||
|
|
||||||
void WinEDA_SchematicFrame::OnUpdateSchematicRedo( wxUpdateUIEvent& event )
|
void WinEDA_SchematicFrame::OnUpdateSchematicRedo( wxUpdateUIEvent& event )
|
||||||
{
|
{
|
||||||
|
if ( GetScreen() )
|
||||||
event.Enable( (GetScreen()->m_RedoList) ? true : false );
|
event.Enable( (GetScreen()->m_RedoList) ? true : false );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue