summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-05-21 13:37:15 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-05-21 13:37:15 -0400
commitd8e8a7789bcf2c1b9e5c39c51286b6fc52a5a271 (patch)
treecc19586da285883731dfc2907e780b972e84c625
parent13988ed593c3b9e2da482fd89bd3cb76d359e2d4 (diff)
downloadsigen-d8e8a7789bcf2c1b9e5c39c51286b6fc52a5a271.tar.gz
sigen-d8e8a7789bcf2c1b9e5c39c51286b6fc52a5a271.tar.xz
sigen-d8e8a7789bcf2c1b9e5c39c51286b6fc52a5a271.zip
Use new convenience function for the current game
-rw-r--r--sigmodr/SigmodrUI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sigmodr/SigmodrUI.cpp b/sigmodr/SigmodrUI.cpp
index d4ea5d80..23f56913 100644
--- a/sigmodr/SigmodrUI.cpp
+++ b/sigmodr/SigmodrUI.cpp
@@ -169,7 +169,7 @@ void SigmodrUI::setChangedTitle(const bool changed)
void SigmodrUI::setDirty(const bool dirty)
{
- const Game* game = static_cast<Object*>(treeSigmod->currentIndex().internalPointer())->game();
+ const Game* game = treeSigmod->currentGame();
treeSigmod->setDirty(game, dirty);
setChangedTitle(dirty);
actionCollection()->action("file_save")->setEnabled(dirty);