From 32fdf9272e1a94f8c51274a1758f4feae555341a Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 27 Dec 2022 18:33:21 +0100 Subject: Cleaning code --- src/base_tab/BaseTab.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/base_tab/BaseTab.cpp') diff --git a/src/base_tab/BaseTab.cpp b/src/base_tab/BaseTab.cpp index fada2b2..5db4f53 100644 --- a/src/base_tab/BaseTab.cpp +++ b/src/base_tab/BaseTab.cpp @@ -30,12 +30,7 @@ void BaseTab::OnOpenGame(wxListEvent &event){ std::shared_ptr g = games_tab->OpenGame(gameid,event.GetIndex()); if(g){ game=g; - // Ask MainFrame to open a new game - // TODO: Simplify that is, use wxWidget main app to do it - wxCommandEvent newGameEvent(NEW_GAME_EVENT, GetId()); - newGameEvent.SetEventObject(this); - newGameEvent.SetClientData((TabInfos*)this); - ProcessEvent(newGameEvent); + wxGetApp().NewGame(this,g); } } -- cgit v1.2.3