- MGR: Make sure the attach to project wizard launches if BOINC

is not attached to any projects.
        
    clientgui/
        AdvancedFrame.cpp
        sg_BoincSimpleGUI.cpp

svn path=/trunk/boinc/; revision=14607
This commit is contained in:
Rom Walton 2008-01-21 15:57:33 +00:00
parent 26a3c058d7
commit 2eb29f4b68
3 changed files with 10 additions and 2 deletions

View File

@ -743,3 +743,11 @@ Rom Jan 21 2008
clientgui/
ProjectListCtrl.cpp
Rom Jan 21 2008
- MGR: Make sure the attach to project wizard launches if BOINC
is not attached to any projects.
clientgui/
AdvancedFrame.cpp
sg_BoincSimpleGUI.cpp

View File

@ -1847,7 +1847,7 @@ void CAdvancedFrame::OnConnect(CFrameEvent& WXUNUSED(event)) {
// If failure, display the messages tab
m_pNotebook->SetSelection(ID_LIST_MESSAGESVIEW - ID_LIST_BASE);
}
} else if (pis.url.size() && !status.disallow_attach) {
} else if ((pis.url.size() || (0 >= pDoc->GetProjectCount())) && !status.disallow_attach) {
if (!IsShown()) {
Show();
}

View File

@ -413,7 +413,7 @@ void CSimpleFrame::OnConnect(CFrameEvent& WXUNUSED(event)) {
// If successful, hide the main window
Hide();
}
} else if (pis.url.size() && !status.disallow_attach) {
} else if ((pis.url.size() || (0 >= pDoc->GetProjectCount())) && !status.disallow_attach) {
if (!IsShown()) {
Show();
}