From da650fdda8ecc257b1822c9213e213ad63623533 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 31 Jan 2006 14:14:04 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=9364 --- clientgui/BOINCBaseView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clientgui/BOINCBaseView.cpp b/clientgui/BOINCBaseView.cpp index ed7b61a1ca..92081b463e 100644 --- a/clientgui/BOINCBaseView.cpp +++ b/clientgui/BOINCBaseView.cpp @@ -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