aboutsummaryrefslogtreecommitdiff
path: root/src/ochess.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-12-27 18:33:21 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-12-27 18:33:21 +0100
commit32fdf9272e1a94f8c51274a1758f4feae555341a (patch)
treef5a1f7385256512e8ffd5354c236ddffc025b869 /src/ochess.cpp
parentd87b42dcd643ddbb6db17fd64acf69d4fa0c8948 (diff)
Cleaning code
Diffstat (limited to 'src/ochess.cpp')
-rw-r--r--src/ochess.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ochess.cpp b/src/ochess.cpp
index 3cfa8be..e9dd94f 100644
--- a/src/ochess.cpp
+++ b/src/ochess.cpp
@@ -19,6 +19,12 @@ std::vector<TabInfos *> MyApp::ListTabInfos() {
return (tinfos);
}
+void MyApp::NewGame(TabInfos *tabsrc,std::shared_ptr<Game> g){
+ MainWindow *w=((MainWindow *)this->GetTopWindow());
+ TabInfos *i=w->NewGame(g);
+ i->Link(tabsrc); // Link opened game to tabsrc
+}
+
wxIMPLEMENT_APP(MyApp);