Fixed autopause
[ghostsoverboard] / seascene.cpp
index 6e1b10f..5d1273f 100644 (file)
@@ -92,7 +92,7 @@ SeaScene::SeaScene(QObject *parent) :
 
     autopauseTimer.setSingleShot(true);
     autopauseTimer.setInterval(15*60*1000);
-    connect(&autopauseTimer,SIGNAL(timeout()),this,SLOT(forcePause()));
+    connect(&autopauseTimer,SIGNAL(timeout()),this,SLOT(turnPauseOn()));
 
 
 }
@@ -707,3 +707,8 @@ void SeaScene::setItemPointersNull()
     pVictoryCongratulationsItem_ = NULL;
 
 }
+
+void SeaScene::turnPauseOn()
+{
+    pPauseAction_->setChecked(true);
+}