Merge pull request #2758 from BOINC/dpa_sg_projname

Manager, simple view: if project name not known yet, show URL
This commit is contained in:
Kevin Reed 2018-10-19 16:39:04 -05:00 committed by GitHub
commit 8e685ff53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -446,9 +446,14 @@ void CSimpleProjectPanel::UpdateProjectList() {
}
}
// if it isn't currently in the list then we have a new one! lets add it
if ( !found ) {
wxString projname(project->project_name.c_str(), wxConvUTF8);
// add new project
//
if (!found) {
const char* p = project->project_name.c_str();
if (strlen(p) == 0) {
p = project->master_url;
}
wxString projname(p, wxConvUTF8);
#if SORTPROJECTLIST
int alphaOrder;
for(j = 0; j < ctrlCount; ++j) {