*** empty log message ***

svn path=/trunk/boinc/; revision=9364
This commit is contained in:
Charlie Fenton 2006-01-31 14:14:04 +00:00
parent 12886afe5e
commit da650fdda8
1 changed files with 2 additions and 1 deletions

View File

@ -220,7 +220,8 @@ void CBOINCBaseView::OnListRender(wxTimerEvent& event) {
m_pListPane->SetItemState(0, desiredstate, desiredstate);
}
#else
if (m_pListPane->GetFirstSelected() < 0)
if ((m_pListPane->GetFirstSelected() < 0) &&
(m_pListPane->GetItemCount() >= 1))
m_pListPane->SetItemState(0, wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED,
wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED);
#endif