diff --git a/client/win/resource.rc b/client/win/resource.rc index 3c36e90b3a..3e4af1ad64 100755 --- a/client/win/resource.rc +++ b/client/win/resource.rc @@ -230,7 +230,6 @@ BEGIN END POPUP "Project" BEGIN - MENUITEM "Relogin...", ID_PROJECT_RELOGIN MENUITEM "Quit Project...", ID_PROJECT_QUIT END POPUP "Work" diff --git a/client/win/wingui_mainwindow.cpp b/client/win/wingui_mainwindow.cpp index eb710a4059..71d6c51cfb 100755 --- a/client/win/wingui_mainwindow.cpp +++ b/client/win/wingui_mainwindow.cpp @@ -955,7 +955,7 @@ void CMainWindow::OnCommandSettingsQuit() CString str; str.Format("Are you sure you want to quit the project %s?", gstate.projects[dlg.m_nSel]->get_project_name()); if(AfxMessageBox(str, MB_YESNO, 0) == IDYES) { - gstate.quit_project(dlg.m_nSel); + gstate.quit_project(gstate.projects[dlg.m_nSel]); } } } @@ -1109,7 +1109,7 @@ void CMainWindow::OnCommandProjectQuit() CString strBuf; strBuf.Format("Are you sure you want to quit the project %s?", gstate.projects[i]->get_project_name()); if(AfxMessageBox(strBuf, MB_YESNO, 0) == IDYES) { - gstate.quit_project(i); + gstate.quit_project(gstate.projects[i]); } } diff --git a/client/win/wingui_mainwindow.h b/client/win/wingui_mainwindow.h index 463f280242..c4c1b8becd 100755 --- a/client/win/wingui_mainwindow.h +++ b/client/win/wingui_mainwindow.h @@ -131,7 +131,6 @@ protected: afx_msg void OnCommandSettingsLogin(); afx_msg void OnCommandSettingsProxyServer(); afx_msg void OnCommandHelpAbout(); - afx_msg void OnCommandProjectRelogin(); afx_msg void OnCommandProjectQuit(); afx_msg void OnCommandWorkShowGraphics(); afx_msg void OnCommandFileClearInactive();