Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge [16447] from trunk.
In MythAppearance if the window definition cannot be loaded bailout
rather than trying to continue and segfault because of missing UI types.

Fixes #4892.

git-svn-id: http://svn.mythtv.org/svn/branches/release-0-21-fixes@16448 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
Paul Harrison committed Mar 8, 2008
1 parent fb1afa4 commit db036ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/programs/mythfrontend/mythappearance.cpp
Expand Up @@ -61,8 +61,11 @@ bool MythAppearance::Create()
foundtheme = LoadWindowFromXML("appear-ui.xml", "appearance", this);

if (!foundtheme)
{
VERBOSE(VB_IMPORTANT, "Unable to load window appearance from "
"appear-ui.xml");
return false;
}

m_topleftarrow = dynamic_cast<MythUIImage *>
(GetChild("topleft"));
Expand Down

0 comments on commit db036ef

Please sign in to comment.