Permalink
Browse files

Start MythTimer's QElapsedTimer on construction.

This is a temporary workaround that breaks MythTimer's unit tests,
but it allows users to view in progress recordings which apperently
depended on elapsed() returning a non-zero value even if the timer
had not been started yet.
  • Loading branch information...
daniel-kristjansson committed Jan 25, 2013
1 parent ae84064 commit 9402858049e6fde3dce16c69a811410da355b1a5
Showing with 2 additions and 2 deletions.
  1. +1 −1 mythtv/libs/libmythbase/mythtimer.h
  2. +1 −1 mythtv/libs/libmythbase/mythversion.h
@@ -12,7 +12,7 @@
class MBASE_PUBLIC MythTimer
{
public:
MythTimer() : m_offset(0) { m_timer.invalidate(); }
MythTimer() : m_offset(0) { m_timer.start(); }
void start(void);
int restart(void);
@@ -12,7 +12,7 @@
/// Update this whenever the plug-in API changes.
/// Including changes in the libmythbase, libmyth, libmythtv, libmythav* and
/// libmythui class methods used by plug-ins.
#define MYTH_BINARY_VERSION "0.27.20130103-1"
#define MYTH_BINARY_VERSION "0.27.20130124-1"
/** \brief Increment this whenever the MythTV network protocol changes.
*

0 comments on commit 9402858

Please sign in to comment.