- fixes #241: BOINC Manager should only display one of each

project, no mater how many time you switch to and from
        the page.

    clientgui/
        ProjectInfoPage.cpp, .h

svn path=/trunk/boinc/; revision=12847
This commit is contained in:
Rom Walton 2007-06-07 16:10:38 +00:00
parent 07de3b3e29
commit 80563bb429
3 changed files with 21 additions and 14 deletions

View File

@ -5857,7 +5857,7 @@ Charlie 6 June 2007
boinc.xcodeproj/
project.pbxproj
Rom 6 June 2007
Rom 7 June 2007
- WinSETUP: The VBS custom action should delete the existing
VBS script in the various uninstall modes.
@ -5888,3 +5888,11 @@ Charlie 7 June 2007
uninstall.cpp
make_GridRepublic.sh
release_GridRepublic.sh
Rom 7 June 2007
- fixes #241: BOINC Manager should only display one of each
project, no mater how many time you switch to and from
the page.
clientgui/
ProjectInfoPage.cpp, .h

View File

@ -90,6 +90,7 @@ bool CProjectInfoPage::Create( CBOINCBaseWizard* parent )
m_pProjectUrlStaticCtrl = NULL;
m_pProjectUrlCtrl = NULL;
////@end CProjectInfoPage member initialisation
bProjectListPopulated = false;
////@begin CProjectInfoPage creation
wxBitmap wizardBitmap(wxNullBitmap);
@ -251,6 +252,7 @@ void CProjectInfoPage::OnPageChanged( wxWizardExEvent& event ) {
// Populate the combo box with project information
//
if (!bProjectListPopulated) {
pDoc->rpc.get_all_projects_list(pl);
for (i=0; i<pl.projects.size(); i++) {
m_pProjectListCtrl->Append(
@ -258,6 +260,8 @@ void CProjectInfoPage::OnPageChanged( wxWizardExEvent& event ) {
wxString(pl.projects[i]->url.c_str(), wxConvUTF8)
);
}
bProjectListPopulated = true;
}
Layout();
Fit();
@ -271,11 +275,6 @@ void CProjectInfoPage::OnPageChanged( wxWizardExEvent& event ) {
*/
void CProjectInfoPage::OnPageChanging( wxWizardExEvent& event ) {
// Delete all existing entries
//
m_pProjectListCtrl->DeleteAllEntries();
event.Skip();
}

View File

@ -93,7 +93,7 @@ public:
wxTextCtrl* m_pProjectUrlCtrl;
wxString m_strProjectURL;
////@end CProjectInfoPage member variables
bool bProjectListPopulated;
ALL_PROJECTS_LIST pl;
};