From 5955419dc2b31867ae0d4b7cf79beef4d191701a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 15 Mar 2005 21:53:12 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=5667 --- checkin_notes | 6 ++++++ clientgui/MainDocument.cpp | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) 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; }