From d8e8a7789bcf2c1b9e5c39c51286b6fc52a5a271 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 21 May 2009 13:37:15 -0400 Subject: Use new convenience function for the current game --- sigmodr/SigmodrUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(treeSigmod->currentIndex().internalPointer())->game(); + const Game* game = treeSigmod->currentGame(); treeSigmod->setDirty(game, dirty); setChangedTitle(dirty); actionCollection()->action("file_save")->setEnabled(dirty); -- cgit