diff options
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); } } |
