Fixed autopause
authorHeli Hyvättinen <heli.hyvattinen@kymp.net>
Tue, 26 Jul 2011 20:43:43 +0000 (23:43 +0300)
committerHeli Hyvättinen <heli.hyvattinen@kymp.net>
Tue, 26 Jul 2011 20:43:43 +0000 (23:43 +0300)
No longer uses forcePause(), thus no longer messes up the pause system.
(forcePause() requires to be returned from with softContinue() )

seascene.cpp
seascene.h

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);
+}
index 4673995..aba6587 100644 (file)
@@ -88,6 +88,8 @@ public slots:
 
     void setItemPointersNull();
 
+    void turnPauseOn();
+
 
 
 protected: