diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/base_tab/AppendGameDialog.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/base_tab/AppendGameDialog.cpp b/src/base_tab/AppendGameDialog.cpp index bfa33f3..1ff4310 100644 --- a/src/base_tab/AppendGameDialog.cpp +++ b/src/base_tab/AppendGameDialog.cpp @@ -5,10 +5,12 @@ AppendGameDialog::AppendGameDialog(wxWindow *parent, GameBase *base) : AppendGameDialogBF(parent), base(base) { - tinfos = MAINWIN->ListTabInfos(); - for (TabInfos *i : tinfos) { - wxWindow *win = dynamic_cast<wxWindow *>(i); - game_list->Append(win->GetLabel()); + for (TabInfos *i : MAINWIN->ListTabInfos()) { + if (i->type == TabInfos::GAME || i->type == TabInfos::BASE) { + wxWindow *win = dynamic_cast<wxWindow *>(i); + game_list->Append(win->GetLabel()); + tinfos.push_back(i); + } } Bind(wxEVT_BUTTON, &AppendGameDialog::OnCancel, this, |
