diff options
Diffstat (limited to 'src/base_tab/BaseTab.cpp')
| -rw-r--r-- | src/base_tab/BaseTab.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base_tab/BaseTab.cpp b/src/base_tab/BaseTab.cpp index bc40e60..8b58ca9 100644 --- a/src/base_tab/BaseTab.cpp +++ b/src/base_tab/BaseTab.cpp @@ -48,7 +48,10 @@ void BaseTab::Refresh(){ void BaseTab::OpenDatabase(std::string dbpath) { wxFileName file(dbpath); wxString ext = file.GetExt().Lower(); + wxLogDebug("Here"); if (ext == "pgn") { + if(!file.Exists()) + PGNGameBase::CreateDatabaseFile(dbpath); base.reset(); base = std::shared_ptr<GameBase>(new PGNGameBase(dbpath)); } |
