diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-27 18:33:21 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-27 18:33:21 +0100 |
| commit | 32fdf9272e1a94f8c51274a1758f4feae555341a (patch) | |
| tree | f5a1f7385256512e8ffd5354c236ddffc025b869 /src/base_tab/BaseTab.cpp | |
| parent | d87b42dcd643ddbb6db17fd64acf69d4fa0c8948 (diff) | |
Cleaning code
Diffstat (limited to 'src/base_tab/BaseTab.cpp')
| -rw-r--r-- | src/base_tab/BaseTab.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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<Game> 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); } } |
