mirror of https://github.com/BOINC/boinc.git
Compile fixes
This commit is contained in:
parent
7da3abc76b
commit
18f08637ee
|
@ -789,11 +789,10 @@ void CSimpleTaskPanel::GetApplicationAndProjectNames(RESULT* result, wxString* a
|
|||
strAppBuffer = wxString(state_result->avp->app_name, wxConvUTF8);
|
||||
}
|
||||
|
||||
if (avp->ncudas) {
|
||||
strGPUBuffer = wxString(" (NVIDIA GPU)", wxConvUTF8);
|
||||
}
|
||||
if (avp->natis) {
|
||||
strGPUBuffer = wxString(" (ATI GPU)", wxConvUTF8);
|
||||
char buf[256];
|
||||
if (avp->gpu_type) {
|
||||
sprintf(buf, " (%s)", proc_type_name(avp->gpu_type));
|
||||
strGPUBuffer = wxString(buf, wxConvUTF8);
|
||||
}
|
||||
|
||||
appName->Printf(
|
||||
|
@ -937,10 +936,17 @@ void CSimpleTaskPanel::UpdateTaskSelectionList(bool reskin) {
|
|||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||
CSkinSimple* pSkinSimple = wxGetApp().GetSkinManager()->GetSimple();
|
||||
|
||||
static bool bAlreadyRunning = false;
|
||||
|
||||
wxASSERT(pDoc);
|
||||
wxASSERT(pSkinSimple);
|
||||
wxASSERT(wxDynamicCast(pSkinSimple, CSkinSimple));
|
||||
|
||||
if (bAlreadyRunning) {
|
||||
return;
|
||||
}
|
||||
bAlreadyRunning = true;
|
||||
|
||||
count = m_TaskSelectionCtrl->GetCount();
|
||||
// Mark all inactive (this lets us loop only once)
|
||||
for (i=0; i<count; ++i) {
|
||||
|
@ -1109,6 +1115,9 @@ void CSimpleTaskPanel::UpdateTaskSelectionList(bool reskin) {
|
|||
if (needRefresh) {
|
||||
m_TaskSelectionCtrl->Refresh();
|
||||
}
|
||||
|
||||
bAlreadyRunning = false;
|
||||
|
||||
wxLogTrace(wxT("Function Start/End"), wxT("CSimpleTaskPanel::UpdateTaskSelectionList - Function End"));
|
||||
}
|
||||
|
||||
|
@ -1248,7 +1257,7 @@ void CSimpleTaskPanel::OnEraseBackground(wxEraseEvent& event) {
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// CSimplePanelBase::OnEraseBackground(event);
|
||||
event.Skip();
|
||||
}
|
||||
|
|
|
@ -478,7 +478,6 @@ APP_VERSION::~APP_VERSION() {
|
|||
}
|
||||
|
||||
int APP_VERSION::parse_coproc(XML_PARSER& xp) {
|
||||
memset(this, 0, sizeof(APP_VERSION));
|
||||
while (!xp.get_tag()) {
|
||||
if (xp.match_tag("/coproc")) {
|
||||
return 0;
|
||||
|
@ -490,6 +489,7 @@ int APP_VERSION::parse_coproc(XML_PARSER& xp) {
|
|||
}
|
||||
|
||||
int APP_VERSION::parse(XML_PARSER& xp) {
|
||||
clear();
|
||||
while (!xp.get_tag()) {
|
||||
if (xp.match_tag("/app_version")) return 0;
|
||||
if (xp.parse_str("app_name", app_name, sizeof(app_name))) continue;
|
||||
|
|
Loading…
Reference in New Issue