aboutsummaryrefslogtreecommitdiff
path: root/src/base_tab/BaseTab.cpp
diff options
context:
space:
mode:
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