From 3263bda23b8bccb9958471be064603d958f08253 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 26 Dec 2022 16:23:14 +0100 Subject: Improve game import in db --- src/base_tab/BaseTab.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/base_tab/BaseTab.cpp') diff --git a/src/base_tab/BaseTab.cpp b/src/base_tab/BaseTab.cpp index 05ff907..c13caae 100644 --- a/src/base_tab/BaseTab.cpp +++ b/src/base_tab/BaseTab.cpp @@ -10,9 +10,10 @@ BaseTab::BaseTab(wxFrame *parent, std::string base_file) // Games tab games_tab=new BaseGameTab((wxFrame *)notebook,base,this); + glm=games_tab->glm; notebook->AddPage(games_tab, "Games list",true); // true for selecting the tab // Import tab - import_tab=new BaseImportTab((wxFrame *)notebook,this); + import_tab=new BaseImportTab((wxFrame *)notebook,base,this); notebook->AddPage(import_tab, "Import games"); // Manage tab manage_tab=new BaseManageTab((wxFrame *)notebook, base, games_tab->glm); @@ -67,4 +68,5 @@ void BaseTab::OnSave(wxCommandEvent &event) { OpenDatabase(base_file); games_tab->Reset(base); manage_tab->Reset(base); + import_tab->Reset(base); } \ No newline at end of file -- cgit v1.2.3