mirror of https://github.com/BOINC/boinc.git
MGR: In the simple attach scenario, only launch the attach wizard if we are not already attached to the project.
This commit is contained in:
parent
6bc87783dc
commit
a88c671310
|
@ -1783,6 +1783,7 @@ void CAdvancedFrame::OnConnect(CFrameEvent& WXUNUSED(event)) {
|
|||
strProjectName, strProjectURL, strProjectAuthenticator, strProjectInstitution, strProjectDescription, strProjectKnown
|
||||
)
|
||||
){
|
||||
if (!pDoc->project((char*)strProjectURL.c_str())) {
|
||||
wasShown = IsShown();
|
||||
Show();
|
||||
wasVisible = wxGetApp().IsApplicationVisible();
|
||||
|
@ -1807,6 +1808,7 @@ void CAdvancedFrame::OnConnect(CFrameEvent& WXUNUSED(event)) {
|
|||
// If failure, display the notices tab
|
||||
m_pNotebook->SetSelection(ID_ADVNOTICESVIEW - ID_ADVVIEWBASE);
|
||||
}
|
||||
}
|
||||
} else if (ami.acct_mgr_url.size() && ami.have_credentials) {
|
||||
// Fall through
|
||||
//
|
||||
|
|
|
@ -714,6 +714,7 @@ void CSimpleFrame::OnConnect(CFrameEvent& WXUNUSED(event)) {
|
|||
strProjectName, strProjectURL, strProjectAuthenticator, strProjectInstitution, strProjectDescription, strProjectKnown
|
||||
)
|
||||
){
|
||||
if (!pDoc->project((char*)strProjectURL.c_str())) {
|
||||
wasShown = IsShown();
|
||||
Show();
|
||||
wasVisible = wxGetApp().IsApplicationVisible();
|
||||
|
@ -731,6 +732,7 @@ void CSimpleFrame::OnConnect(CFrameEvent& WXUNUSED(event)) {
|
|||
wxURI::Unescape(strProjectDescription),
|
||||
wxURI::Unescape(strProjectKnown)
|
||||
);
|
||||
}
|
||||
} else if (ami.acct_mgr_url.size() && ami.have_credentials) {
|
||||
// Fall through
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue