mirror of https://github.com/BOINC/boinc.git
MGR: I'm not sure what I was thinking, but the attach wizard should always run if the client isn't attached to any projects.
This commit is contained in:
parent
30523d9a47
commit
c47acc111f
|
@ -1912,27 +1912,22 @@ void CAdvancedFrame::OnConnect(CFrameEvent& WXUNUSED(event)) {
|
|||
wxGetApp().ShowApplication(true);
|
||||
pWizard = new CWizardAttach(this);
|
||||
|
||||
if ( strProjectURL.size() &&
|
||||
//(strProjectAuthenticator.size() || strProjectSetupCookie.size()) &&
|
||||
!pDoc->project((char*)strProjectURL.c_str())
|
||||
if (pWizard->Run(
|
||||
wxURI::Unescape(strProjectName),
|
||||
wxURI::Unescape(strProjectURL),
|
||||
wxURI::Unescape(strProjectAuthenticator),
|
||||
wxURI::Unescape(strProjectInstitution),
|
||||
wxURI::Unescape(strProjectDescription),
|
||||
wxURI::Unescape(strProjectKnown),
|
||||
wxURI::Unescape(strProjectSetupCookie),
|
||||
bAccountKeyDetected,
|
||||
bEmbedded)
|
||||
){
|
||||
if (pWizard->Run(
|
||||
wxURI::Unescape(strProjectName),
|
||||
wxURI::Unescape(strProjectURL),
|
||||
wxURI::Unescape(strProjectAuthenticator),
|
||||
wxURI::Unescape(strProjectInstitution),
|
||||
wxURI::Unescape(strProjectDescription),
|
||||
wxURI::Unescape(strProjectKnown),
|
||||
wxURI::Unescape(strProjectSetupCookie),
|
||||
bAccountKeyDetected,
|
||||
bEmbedded)
|
||||
){
|
||||
// If successful, display the work tab
|
||||
m_pNotebook->SetSelection(ID_ADVTASKSVIEW - ID_ADVVIEWBASE);
|
||||
} else {
|
||||
// If failure, display the notices tab
|
||||
m_pNotebook->SetSelection(ID_ADVNOTICESVIEW - ID_ADVVIEWBASE);
|
||||
}
|
||||
// If successful, display the work tab
|
||||
m_pNotebook->SetSelection(ID_ADVTASKSVIEW - ID_ADVVIEWBASE);
|
||||
} else {
|
||||
// If failure, display the notices tab
|
||||
m_pNotebook->SetSelection(ID_ADVNOTICESVIEW - ID_ADVVIEWBASE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -837,22 +837,17 @@ void CSimpleFrame::OnConnect(CFrameEvent& WXUNUSED(event)) {
|
|||
wxGetApp().ShowApplication(true);
|
||||
pWizard = new CWizardAttach(this);
|
||||
|
||||
if ( strProjectURL.size() &&
|
||||
(strProjectAuthenticator.size() || strProjectSetupCookie.size()) &&
|
||||
!pDoc->project((char*)strProjectURL.c_str())
|
||||
){
|
||||
pWizard->Run(
|
||||
wxURI::Unescape(strProjectName),
|
||||
wxURI::Unescape(strProjectURL),
|
||||
wxURI::Unescape(strProjectAuthenticator),
|
||||
wxURI::Unescape(strProjectInstitution),
|
||||
wxURI::Unescape(strProjectDescription),
|
||||
wxURI::Unescape(strProjectKnown),
|
||||
wxURI::Unescape(strProjectSetupCookie),
|
||||
bAccountKeyDetected,
|
||||
bEmbedded
|
||||
);
|
||||
}
|
||||
pWizard->Run(
|
||||
wxURI::Unescape(strProjectName),
|
||||
wxURI::Unescape(strProjectURL),
|
||||
wxURI::Unescape(strProjectAuthenticator),
|
||||
wxURI::Unescape(strProjectInstitution),
|
||||
wxURI::Unescape(strProjectDescription),
|
||||
wxURI::Unescape(strProjectKnown),
|
||||
wxURI::Unescape(strProjectSetupCookie),
|
||||
bAccountKeyDetected,
|
||||
bEmbedded
|
||||
);
|
||||
}
|
||||
|
||||
if (pWizard) {
|
||||
|
|
Loading…
Reference in New Issue