Skip to content

Commit

Permalink
Trigger system events for each screen
Browse files Browse the repository at this point in the history
Closes #9395

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
  • Loading branch information
dbadia authored and stuartm committed Oct 7, 2012
1 parent d848f2d commit 915edac
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions mythtv/libs/libmythui/mythscreentype.cpp
Expand Up @@ -70,8 +70,9 @@ MythScreenType::MythScreenType(
// Can be overridden, of course, but default to full sized.
m_Area = GetMythMainWindow()->GetUIScreenRect();

// gCoreContext->SendSystemEvent(
// QString("SCREEN_TYPE CREATED %1").arg(name));
if (QCoreApplication::applicationName() == MYTH_APPNAME_MYTHFRONTEND)
gCoreContext->SendSystemEvent(
QString("SCREEN_TYPE CREATED %1").arg(name));
}

MythScreenType::MythScreenType(
Expand All @@ -90,14 +91,16 @@ MythScreenType::MythScreenType(

m_Area = GetMythMainWindow()->GetUIScreenRect();

// gCoreContext->SendSystemEvent(
// QString("SCREEN_TYPE CREATED %1").arg(name));
if (QCoreApplication::applicationName() == MYTH_APPNAME_MYTHFRONTEND)
gCoreContext->SendSystemEvent(
QString("SCREEN_TYPE CREATED %1").arg(name));
}

MythScreenType::~MythScreenType()
{
// gCoreContext->SendSystemEvent(
// QString("SCREEN_TYPE DESTROYED %1").arg(objectName()));
if (QCoreApplication::applicationName() == MYTH_APPNAME_MYTHFRONTEND)
gCoreContext->SendSystemEvent(
QString("SCREEN_TYPE DESTROYED %1").arg(objectName()));

// locking ensures background screen load can finish running
SemaphoreLocker locker(&m_LoadLock);
Expand Down

0 comments on commit 915edac

Please sign in to comment.