From 9b2ebc19a6c4070bc5bcf33e905471cf7c80dd72 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 24 Feb 2022 21:10:29 +0100 Subject: Debug pgn loader --- src/MainWindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/MainWindow.cpp') diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 5dbbf28..e831d89 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -27,9 +27,9 @@ MainWindow::MainWindow() menuGame = new wxMenu; menuGame->Append(2, "New", "Create new game"); - Bind(wxEVT_MENU, &MainWindow::OnNewGame, this, 2); + Bind(wxEVT_MENU, &MainWindow::OnMenuNewGame, this, 2); menuGame->Append(3, "New from FEN", "Create new game using FEN"); - Bind(wxEVT_MENU, &MainWindow::OnNewGame, this, 3); + Bind(wxEVT_MENU, &MainWindow::OnMenuNewGame, this, 3); menuGame->AppendSeparator(); menuGame->Append(10, "Save", "Save current game"); menuGame->Append(11, "Save As", "Save current game as"); @@ -53,7 +53,7 @@ MainWindow::MainWindow() Bind(wxEVT_AUINOTEBOOK_PAGE_CHANGED, &MainWindow::OnPageChange, this, wxID_ANY); Bind(REFRESH_TAB_TITLE, &MainWindow::OnRefreshTabTitle, this, wxID_ANY); - Bind(NEW_GAME_EVENT, &MainWindow::OnNewGame2, this, wxID_ANY); + Bind(NEW_GAME_EVENT, &MainWindow::OnNewGame, this, wxID_ANY); Bind(wxEVT_CLOSE_WINDOW, &MainWindow::OnClose, this); } @@ -128,7 +128,7 @@ void MainWindow::OnOpen(wxCommandEvent &event) { } } -void MainWindow::OnNewGame(wxCommandEvent &event) { +void MainWindow::OnMenuNewGame(wxCommandEvent &event) { if (event.GetId() == 3) { wxTextEntryDialog *dial = new wxTextEntryDialog(NULL, wxT("Enter FEN:"), wxT("Error")); @@ -144,7 +144,7 @@ void MainWindow::OnNewGame(wxCommandEvent &event) { } } -void MainWindow::OnNewGame2(wxCommandEvent &event) { +void MainWindow::OnNewGame(wxCommandEvent &event) { Game *g=(Game*)event.GetClientData(); NewGame(g); } -- cgit v1.2.3