[mythtv-commits] Ticket #10557: MythFrontend crash when starting

MythTV noreply at mythtv.org
Sun Apr 8 06:12:34 UTC 2012

#10557: MythFrontend crash when starting
 Reporter:  jyavenard             |          Owner:
     Type:  Bug Report - General  |         Status:  new
 Priority:  major                 |      Milestone:  0.25
Component:  MythTV - General      |        Version:  Unspecified
 Severity:  medium                |     Resolution:
 Keywords:                        |  Ticket locked:  0

Comment (by jyavenard):

 This patch wouldn't compile.

 diff --git a/mythtv/libs/libmythbase/mythcorecontext.cpp
 index 93b5a8b..3940a10 100644
 --- a/mythtv/libs/libmythbase/mythcorecontext.cpp
 +++ b/mythtv/libs/libmythbase/mythcorecontext.cpp
 @@ -1286,6 +1286,8 @@ void MythCoreContext::ReInitLocale(void)

  const QLocale MythCoreContext::GetQLocale(void) const
 +    if (!d->m_locale)
 +        return QLocale();
      return d->m_locale->ToQLocale();

 This one fixes the problem.. InitLocale needs the database to be
 configured and up and running as it retrieves the configured locale from
 the database. However, the issue at hand is when trying to display the
 screen for setting up the locale and the database. So we can't use
 InitLocale yet.

Ticket URL: <http://code.mythtv.org/trac/ticket/10557#comment:3>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center

More information about the mythtv-commits mailing list