mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=5667
This commit is contained in:
parent
47a2b1ab49
commit
5955419dc2
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue