summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-01 20:48:53 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-03-01 20:48:53 -0500
commitc73eea9c956555f5d362258b6d8128fab00cd697 (patch)
treef15f98584698cd96a63711d45a1f452c33a230c7
parent88825c82dd38bd5d3b88582ac1fdefe518d2f8d6 (diff)
downloadsigen-c73eea9c956555f5d362258b6d8128fab00cd697.tar.gz
sigen-c73eea9c956555f5d362258b6d8128fab00cd697.tar.xz
sigen-c73eea9c956555f5d362258b6d8128fab00cd697.zip
New games are marked as dirty
-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()