[mythtv-commits] Ticket #5444: Segfault in Mythappearance on key press

MythTV mythtv at cvs.mythtv.org
Tue Jun 17 06:42:03 UTC 2008

#5444: Segfault in Mythappearance on key press
 Reporter:  Mike Rice <mikerice1969 at gmail.com>  |       Owner:  ijr    
     Type:  patch                               |      Status:  new    
 Priority:  minor                               |   Milestone:  unknown
Component:  mythtv                              |     Version:  head   
 Severity:  medium                              |     Mlocked:  0      
 Using SVN trunk 17456.

 Pressing a key after entering the wizard segfaults here:

 bool MythAppearance::keyPressEvent(QKeyEvent *event)
     if (GetFocusWidget()->keyPressEvent(event))
         return true;

 as GetFocusWidget() is returning NULL.

 This is apparently because SetFocusWidget is not called for the
 MythAppearance object.  Not sure what the desired fix might be but I added
 a SetFocusWidget() call.

 It also looks like there are duplicate lines setting m_offsets and
 m_changeamount.  Patch attached.

Ticket URL: <http://svn.mythtv.org/trac/ticket/5444>
MythTV <http://www.mythtv.org/>

More information about the mythtv-commits mailing list