[mythtv] [PATCH] MythWeather pause fix

dan dan at milkcarton.com
Tue Sep 9 20:06:50 EDT 2003


If you pause mythweather, then press left or right, the "- PAUSED -" 
indicator remains on the screen, but the timer is started.  This patch 
prevents the timer from starting if you press left or right.

-dan
-------------- next part --------------
Index: weather.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythweather/mythweather/weather.cpp,v
retrieving revision 1.32
diff -u -d -r1.32 weather.cpp
--- weather.cpp	9 Sep 2003 23:59:49 -0000	1.32
+++ weather.cpp	10 Sep 2003 02:59:36 -0000
@@ -1441,7 +1441,9 @@
 {
    if (inSetup == false)
    {
-        nextpage_Timer->changeInterval((int)(1000 * nextpageIntArrow));
+	//Don't restart the timer if its inactive
+	if(nextpage_Timer->isActive())
+            nextpage_Timer->changeInterval((int)(1000 * nextpageIntArrow));
         int tp = currentPage;
         tp++;
 
@@ -1550,7 +1552,9 @@
 {
    if (inSetup == false)
    {
-   	nextpage_Timer->changeInterval((int)(1000 * nextpageIntArrow));
+	//Don't restart the timer if its inactive
+	if(nextpage_Timer->isActive())
+   	    nextpage_Timer->changeInterval((int)(1000 * nextpageIntArrow));
    	int tp = currentPage;
    	tp--;
 	


More information about the mythtv-dev mailing list