summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Morgan <smorgan@mythtv.org>2011-07-29 16:20:09 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2011-07-29 16:22:02 (GMT)
commit5be3cdf4561f38e1b93012305657b72aab182ca2 (patch)
tree7a213ca885163ab5dce06516e4544a3f5bf3a5fc
parent760c8db330134fbd4b084473bace157ea778aa27 (diff)
Fix a QT warning about calling killTimer() with an invalid timer id.
(cherry picked from commit 7ad539e3a4ac21188672791b27dd8e5444a09cbb)
-rw-r--r--mythtv/programs/mythfrontend/playbackboxhelper.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/mythtv/programs/mythfrontend/playbackboxhelper.cpp b/mythtv/programs/mythfrontend/playbackboxhelper.cpp
index 27835d5..8f042f9 100644
--- a/mythtv/programs/mythfrontend/playbackboxhelper.cpp
+++ b/mythtv/programs/mythfrontend/playbackboxhelper.cpp
@@ -105,7 +105,10 @@ AvailableStatusType PBHEventHandler::CheckAvailability(const QStringList &slist)
if (it != m_checkAvailability.end())
m_checkAvailability.erase(it);
if (m_checkAvailability.empty() && m_checkAvailabilityTimerId)
+ {
killTimer(m_checkAvailabilityTimerId);
+ m_checkAvailabilityTimerId = 0;
+ }
}
if (cats.empty())