Ticket #4167: patch

File patch, 1.7 KB (added by brucem@…, 16 years ago)

patch to mythtv from root

  • programs/mythfrontend/playbackbox.cpp

     
    28012801    popup->addButton(tr("Job Options"), this,
    28022802                     SLOT(showPlaylistJobPopup()));
    28032803    popup->addButton(tr("Delete"), this, SLOT(doPlaylistDelete()));
     2804    popup->addButton(tr("Delete, and allow re-record"), this, SLOT(doPlaylistDeleteForgetHistory()));
    28042805
    28052806    playButton->setFocus();
    28062807
     
    35753576    playList.clear();
    35763577}
    35773578
     3579void PlaybackBox::doPlaylistDeleteForgetHistory(void)
     3580{
     3581    if (!expectingPopup)
     3582        return;
     3583
     3584    cancelPopup();
     3585
     3586    ProgramInfo *tmpItem;
     3587    QStringList::Iterator it;
     3588
     3589    for (it = playList.begin(); it != playList.end(); ++it )
     3590    {
     3591        tmpItem = findMatchingProg(*it);
     3592        if (tmpItem && (REC_CAN_BE_DELETED(tmpItem)))
     3593            RemoteDeleteRecording(tmpItem, true, false);
     3594    }
     3595
     3596    connected = FillList();
     3597    playList.clear();
     3598}
     3599
    35783600void PlaybackBox::doUndelete(void)
    35793601{
    35803602    if (!expectingPopup)
  • programs/mythfrontend/playbackbox.h

     
    222222    void stopPlaylistUserJob4()       { stopPlaylistJobQueueJob(JOB_USERJOB4); }
    223223    void doClearPlaylist();
    224224    void doPlaylistDelete();
     225    void doPlaylistDeleteForgetHistory();
    225226    void doPlaylistChangeRecGroup();
    226227    void doPlaylistChangePlayGroup();
    227228    void togglePlayListTitle(void);