From b6c5c35b02f0d40b598f95bc2fbb4fe984962a14 Mon Sep 17 00:00:00 2001 From: Dan Werthimer Date: Wed, 14 May 2003 18:09:16 +0000 Subject: [PATCH] no message svn path=/trunk/boinc/; revision=1193 --- client/win/wingui_mainwindow.cpp | 38 +++----------------------------- 1 file changed, 3 insertions(+), 35 deletions(-) diff --git a/client/win/wingui_mainwindow.cpp b/client/win/wingui_mainwindow.cpp index 71d6c51cfb..563061d2a7 100755 --- a/client/win/wingui_mainwindow.cpp +++ b/client/win/wingui_mainwindow.cpp @@ -75,7 +75,6 @@ BEGIN_MESSAGE_MAP(CMainWindow, CWnd) ON_COMMAND(ID_SETTINGS_QUIT, OnCommandSettingsQuit) ON_COMMAND(ID_SETTINGS_PROXYSERVER, OnCommandSettingsProxyServer) ON_COMMAND(ID_HELP_ABOUT, OnCommandHelpAbout) - ON_COMMAND(ID_PROJECT_RELOGIN, OnCommandProjectRelogin) ON_COMMAND(ID_PROJECT_QUIT, OnCommandProjectQuit) ON_COMMAND(ID_WORK_SHOWGRAPHICS, OnCommandWorkShowGraphics) ON_COMMAND(ID_STATUSICON_HIDE, OnCommandHide) @@ -1047,45 +1046,11 @@ void CMainWindow::OnCommandFileClearMessages() // function: causes the client to connect to the network void CMainWindow::OnCommandConnectionConnectNow() { - bool bOldConfirm = gstate.global_prefs.confirm_before_connecting; - gstate.global_prefs.confirm_before_connecting = false; - NetOpen(); - gstate.global_prefs.confirm_before_connecting = bOldConfirm; for(int ii = 0; ii < gstate.projects.size(); ii ++) { gstate.projects[ii]->sched_rpc_pending = true; } - NetClose(); } -#if 0 -////////// -// CMainWindow::OnCommandProjectRelogin -// arguments: void -// returns: void -// function: lets a user change the properties for an account -void CMainWindow::OnCommandProjectRelogin() -{ - if(m_nContextItem < 0 || m_nContextItem > m_ProjectListCtrl.GetItemCount()) return; - PROJECT* pToRelogin = (PROJECT*)m_ProjectListCtrl.GetItemData(m_nContextItem); - m_nContextItem = -1; - if(!pToRelogin) return; - - // find project index - int i; - for(i = 0; i < gstate.projects.size(); i ++) { - if(gstate.projects[i] == pToRelogin) break; - } - if(i == gstate.projects.size()) return; - - // get info and relogin - CLoginDialog dlg(IDD_LOGIN, gstate.projects[i]->master_url, gstate.projects[i]->authenticator); - int retval = dlg.DoModal(); - if(retval == IDOK) { - gstate.change_project(i, dlg.m_strUrl.GetBuffer(0), dlg.m_strAuth.GetBuffer(0)); - } -} -#endif - ////////// // CMainWindow::OnCommandProjectQuit // arguments: void @@ -1659,3 +1624,6 @@ void create_curtain() { void delete_curtain() { g_myWnd->m_pSSWnd->ShowSSWindow(false); } + +void project_add_failed(PROJECT* project) { +}