Ticket #5871: viewscheduled.2.patch

File viewscheduled.2.patch, 826 bytes (added by Marc Alban <marcalban@…>, 15 years ago)

Fix for segfault. (removed configuration script change that slipped in)

  • 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()