Mgr: Ignore GetSelectedItemCount()if message count <= 0 to fix crash bug.

svn path=/trunk/boinc/; revision=16021
This commit is contained in:
Charlie Fenton 2008-09-18 20:32:03 +00:00
parent 59b5bbf772
commit 7613de71d3
1 changed files with 1 additions and 0 deletions

View File

@ -454,6 +454,7 @@ void CViewMessages::UpdateSelection() {
pGroup = m_TaskGroups[0]; pGroup = m_TaskGroups[0];
int n = m_pListPane->GetSelectedItemCount(); int n = m_pListPane->GetSelectedItemCount();
if (m_iTotalDocCount <= 0) n = 0;
if (n > 0) { if (n > 0) {
m_pTaskPane->EnableTask(pGroup->m_Tasks[BTN_COPYSELECTED]); m_pTaskPane->EnableTask(pGroup->m_Tasks[BTN_COPYSELECTED]);