MGR: Fix flicker in projects tab website buttons. API: fix a compiler warning which was an actual logic error.

svn path=/trunk/boinc/; revision=14909
This commit is contained in:
Charlie Fenton 2008-03-14 00:41:14 +00:00
parent 8098622210
commit 3c5d7ada20
3 changed files with 49 additions and 36 deletions

View File

@ -50,7 +50,7 @@ void txf_load_fonts(char* dir) {
fprintf(stderr, "Successfully loaded '%s'...\n", phys_path); fprintf(stderr, "Successfully loaded '%s'...\n", phys_path);
CreateTexFont(txf[i], 0, GL_TRUE); CreateTexFont(txf[i], 0, GL_TRUE);
} else { } else {
fprintf(stderr, "Failed to load '%s' error message: '%s'...\n", phys_path, txfErrorString); fprintf(stderr, "Failed to load '%s' error message: '%s'...\n", phys_path, txfErrorString());
} }
} }
} }

View File

@ -2362,3 +2362,12 @@ David Mar 13 2008
transitioner.C transitioner.C
validate_util2.C,h validate_util2.C,h
validator.C validator.C
Charlie Mar 13 2008
MGR: Fix flicker in projects tab website buttons.
API: fix a compiler warning which was an actual logic error.
clientgui/
ViewProjectsGrid.cpp
api/
texfont.C

View File

@ -613,6 +613,7 @@ void CViewProjectsGrid::UpdateWebsiteSelection(long lControlGroup, PROJECT* proj
// Update the websites list // Update the websites list
// //
if (m_bForceUpdateSelection) {
if (m_TaskGroups.size() > 1) { if (m_TaskGroups.size() > 1) {
// Delete task group, objects, and controls. // Delete task group, objects, and controls.
@ -659,6 +660,9 @@ void CViewProjectsGrid::UpdateWebsiteSelection(long lControlGroup, PROJECT* proj
} }
} }
} }
m_bForceUpdateSelection = false;
}
} }
void CViewProjectsGrid::FormatProjectName(wxInt32 item, wxString& strBuffer) { void CViewProjectsGrid::FormatProjectName(wxInt32 item, wxString& strBuffer) {