*** empty log message ***

svn path=/trunk/boinc/; revision=12206
This commit is contained in:
Rom Walton 2007-03-10 04:20:11 +00:00
parent 5bf406aaf2
commit 67e863b46a
3 changed files with 8 additions and 19 deletions

View File

@ -2296,3 +2296,9 @@ Rom 9 Mar 2007
WizardAccountManager.cpp
WizardAttachProject.cpp
wizardex.cpp, .h
Rom 9 Mar 2007
- MGR: Fix a segfault on Linux.
clientgui/
ProjectInfoPage.cpp, .h

View File

@ -287,14 +287,14 @@ void CProjectInfoPage::OnPageChanged( wxWizardExEvent& event ) {
//
pDoc->rpc.get_project_list(pl);
for (i=0; i<pl.projects.size(); i++) {
m_pProjectSelectionCtrl->Append(ConstructProjectTitle(i));
m_pProjectSelectionCtrl->Append(wxString(pl.projects[i]->name.c_str(), wxConvUTF8));
}
m_pProjectSelectionCtrl->Append(_("Other"));
Fit();
m_pProjectSelectionCtrl->SetValue(
ConstructProjectTitle(0)
ConstructProjectTitle(wxString(pl.projects[0]->name.c_str(), wxConvUTF8))
);
m_pProjectSelectionDescriptionStaticCtrl->SetLabel(
wxString(pl.projects[0]->description.c_str(), wxConvUTF8)
@ -356,17 +356,3 @@ void CProjectInfoPage::OnCancel( wxWizardExEvent& event ) {
PROCESS_CANCELEVENT(event);
}
/*!
* Construct what the string should look like for a project in the
* drop down combo box.
*/
wxString CProjectInfoPage::ConstructProjectTitle( int iIndex ) {
wxString strReturnValue;
strReturnValue = wxString(pl.projects[iIndex]->name.c_str(), wxConvUTF8);
return strReturnValue;
}

View File

@ -82,9 +82,6 @@ public:
/// Should we show tooltips?
static bool ShowToolTips();
/// Construct project title
wxString ConstructProjectTitle( int iIndex );
////@begin CProjectInfoPage member variables
wxStaticText* m_pTitleStaticCtrl;
wxStaticText* m_pDescriptionStaticCtrl;