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:20:17 (GMT)
commit7ad539e3a4ac21188672791b27dd8e5444a09cbb (patch)
tree8a7537c1c7969e452efb47a8c9801dc1615fae99
parent42fbadb26fa00311ec35de7be116656a02bcc189 (diff)
Fix a QT warning about calling killTimer() with an invalid timer id.
-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 46e9955..fd5e1cf 100644
--- a/mythtv/programs/mythfrontend/playbackboxhelper.cpp
+++ b/mythtv/programs/mythfrontend/playbackboxhelper.cpp
@@ -61,7 +61,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())