mirror of https://github.com/BOINC/boinc.git
MGR: Fix a crash bug if connection to client is lost in Simple View
This commit is contained in:
parent
9962455ae6
commit
f1e1b7167a
|
@ -526,6 +526,7 @@ std::string CSimpleProjectPanel::GetProjectIconLoc(char* project_url) {
|
|||
char urlDirectory[256];
|
||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||
PROJECT* project = pDoc->state.lookup_project(project_url);
|
||||
if (!project) return (std::string)"";
|
||||
url_to_project_dir(project->master_url, urlDirectory);
|
||||
return (std::string)urlDirectory + "/stat_icon";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue