diff options
Diffstat (limited to 'src/game_tab/GameTab.cpp')
| -rw-r--r-- | src/game_tab/GameTab.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game_tab/GameTab.cpp b/src/game_tab/GameTab.cpp index e9ce482..2b98415 100644 --- a/src/game_tab/GameTab.cpp +++ b/src/game_tab/GameTab.cpp @@ -5,7 +5,7 @@ wxDEFINE_EVENT(GAME_CHANGE, wxCommandEvent); wxDEFINE_EVENT(SHOW_ENGINE_EVALUATION, wxCommandEvent); GameTab::GameTab(wxFrame *parent, std::shared_ptr<Game> game) - : wxPanel(parent), game(game), TabInfos(TabInfos::GAME) { + : wxPanel(parent), TabInfos(TabInfos::GAME), game(game) { // Splitter wxSplitterWindow *splitter = new wxSplitterWindow(this, wxID_ANY); splitter->SetSashGravity(0.8); @@ -41,7 +41,7 @@ GameTab::GameTab(wxFrame *parent, std::shared_ptr<Game> game) void GameTab::OnToolClick(wxCommandEvent &event){ short id=event.GetId(); if(id==0){ - if(!related_file.size()>0){ + if(!(related_file.size()>0)){ wxFileDialog newFileDialog(this, _("Save Game"), "", "", "PGN files (*.pgn)|*.pgn", wxFD_SAVE|wxFD_OVERWRITE_PROMPT); |
