Skip to content

Commit

Permalink
Restart the idle timer after escaping from a slideshow
Browse files Browse the repository at this point in the history
Fixes #11033

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
  • Loading branch information
chadparry authored and stuartm committed Aug 27, 2012
1 parent ab9a50c commit b86b6e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mythplugins/mythgallery/mythgallery/glsingleview.cpp
Expand Up @@ -155,6 +155,12 @@ void GLSingleView::CleanUp(void)
{
makeCurrent();

if (m_slideshow_running)
{
GetMythMainWindow()->PauseIdleTimer(false);
GetMythUI()->RestoreScreensaver();
}

if (m_slideshow_timer)
{
m_slideshow_timer->stop();
Expand Down
6 changes: 6 additions & 0 deletions mythplugins/mythgallery/mythgallery/singleview.cpp
Expand Up @@ -148,6 +148,12 @@ SingleView::SingleView(

SingleView::~SingleView()
{
if (m_slideshow_running)
{
GetMythMainWindow()->PauseIdleTimer(false);
GetMythUI()->RestoreScreensaver();
}

if (m_effect_painter)
{
if (m_effect_painter->isActive())
Expand Down

0 comments on commit b86b6e1

Please sign in to comment.