Ticket #5871: viewscheduled.patch

File viewscheduled.patch, 1.1 KB (added by Marc Alban <marcalban@…>, 11 years ago)

Fix for segfault.

  • mythtv/configure

     
    12441244ar="ar"
    12451245nm="nm"
    12461246ranlib="ranlib"
     1247make="make"
    12471248qmake="qmake"
    12481249strip="strip"
    12491250asmalign_pot="unknown"
  • mythtv/programs/mythfrontend/viewscheduled.cpp

     
    342342
    343343void ViewScheduled::edit()
    344344{
    345     ProgramInfo *pginfo = qVariantValue<ProgramInfo*>
    346                                 (m_schedulesList->GetItemCurrent()->GetData());
    347     if (!pginfo)
    348         return;
     345    if (!m_schedulesList->IsEmpty())
     346    {
     347        ProgramInfo *pginfo = qVariantValue<ProgramInfo*>
     348                                    (m_schedulesList->GetItemCurrent()->GetData());
     349        if (!pginfo)
     350            return;
    349351
    350     pginfo->EditScheduled();
     352        pginfo->EditScheduled();
     353    }
    351354}
    352355
    353356void ViewScheduled::customEdit()