summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sigmodr/SigmodrUI.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/sigmodr/SigmodrUI.cpp b/sigmodr/SigmodrUI.cpp
index 6ea019d3..53b1aa46 100644
--- a/sigmodr/SigmodrUI.cpp
+++ b/sigmodr/SigmodrUI.cpp
@@ -179,7 +179,9 @@ void SigmodrUI::setDirty(const bool dirty)
void SigmodrUI::newGame()
{
- treeSigmod->addGame(new Game);
+ Game* game = new Game;
+ treeSigmod->addGame(game);
+ treeSigmod->setDirty(game, true);
}
void SigmodrUI::openGame()