Commit 4fc3e407 authored by Yury Khalyavin's avatar Yury Khalyavin Committed by Dick Hollenbeck

This path select next item in "Component library files" after deleted

item.
parent 2fb1de80
......@@ -272,6 +272,15 @@ void DIALOG_EESCHEMA_CONFIG::OnRemoveLibClick( wxCommandEvent& event )
m_ListLibr->Delete(selections[ii] );
m_LibListChanged = TRUE;
}
// Select next item after deleted in m_ListLibr
if( m_ListLibr->GetCount() > 0 && selections.GetCount() > 0 )
{
int pos = selections[selections.GetCount()-1];
if( pos == m_ListLibr->GetCount() )
pos = m_ListLibr->GetCount() - 1;
m_ListLibr->SetSelection( pos );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment