diff --git a/checkin_notes b/checkin_notes index 232fc779de..f56ee2d1f6 100755 --- a/checkin_notes +++ b/checkin_notes @@ -25961,3 +25961,9 @@ David 15 Mar 2005 lib/ boinc_cmd.C parse.C + +David 15 Mar 2005 + - BOINC manager: if project doesn't have a name yet, use its URL + + clientgui/ + MainDocument.cpp diff --git a/clientgui/MainDocument.cpp b/clientgui/MainDocument.cpp index 91c164a198..0b82c4e0df 100644 --- a/clientgui/MainDocument.cpp +++ b/clientgui/MainDocument.cpp @@ -440,6 +440,7 @@ wxInt32 CMainDocument::GetProjectCount() wxInt32 CMainDocument::GetProjectProjectName( wxInt32 iIndex, wxString& strBuffer ) { PROJECT* pProject = NULL; + strBuffer = ""; try { @@ -451,9 +452,13 @@ wxInt32 CMainDocument::GetProjectProjectName( wxInt32 iIndex, wxString& strBuffe pProject = NULL; } - if ( NULL != pProject ) - strBuffer = pProject->project_name.c_str(); + if (!pProject) return 0; + if (pProject->project_name.length() == 0) { + strBuffer = pProject->master_url.c_str(); + } else { + strBuffer = pProject->project_name.c_str(); + } return 0; }