Skip to content

Commit

Permalink
Fix displaying the frontend settings screens.
Browse files Browse the repository at this point in the history
With certain combinations of hardware, driver and platform, the frontend
settings pages are not displayed when using the OpenGL painter. This is
because the libmythui painter renders into the painter window whereas
the settings pages (non-libmythui) are still rendered into the
MythMainWindow object (the parent window).

In the majority of cases this works without issue but sometimes the
painter window obscures the parent. As a workaround simply hide the
painter window when entering the settings pages.

A similar workaround may be necessary for any remaining non-libmythui
plugins.
  • Loading branch information
Mark Kendall committed May 2, 2011
1 parent ea24712 commit b4b9f0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/programs/mythfrontend/main.cpp
Expand Up @@ -511,6 +511,7 @@ static void TVMenuCallback(void *data, QString &selection)
{
GetMythUI()->AddCurrentLocation("Setup");
gCoreContext->ActivateSettingsCache(false);
GetMythMainWindow()->HidePainterWindow();
}

if (sel == "tv_watch_live")
Expand Down Expand Up @@ -707,6 +708,7 @@ static void TVMenuCallback(void *data, QString &selection)
if (sel == "settings general" ||
sel == "settings generalrecpriorities")
ScheduledRecording::signalChange(0);
GetMythMainWindow()->ShowPainterWindow();
}
}

Expand Down

0 comments on commit b4b9f0c

Please sign in to comment.