*** empty log message ***

svn path=/trunk/boinc/; revision=5667
This commit is contained in:
David Anderson 2005-03-15 21:53:12 +00:00
parent 47a2b1ab49
commit 5955419dc2
2 changed files with 13 additions and 2 deletions

View File

@ -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

View File

@ -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;
}