aboutsummaryrefslogtreecommitdiff
path: root/src/base_tab/BaseTab.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-12-26 16:23:14 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-12-26 16:23:14 +0100
commit3263bda23b8bccb9958471be064603d958f08253 (patch)
tree390886397e25b27d78993442ed560e19928211de /src/base_tab/BaseTab.cpp
parent1c2d2a14ac1b8eab0504f657b02ab10290f92bf6 (diff)
Improve game import in db
Diffstat (limited to 'src/base_tab/BaseTab.cpp')
-rw-r--r--src/base_tab/BaseTab.cpp4
1 files changed, 3 insertions, 1 deletions
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