Ticket #3979: recordingbookmark.diff

File recordingbookmark.diff, 1.8 KB (added by maverik044, 12 years ago)
  • mythtv/programs/mythfrontend/playbackbox.cpp

    old new void PlaybackBox::selected() 
    23882388
    23892389    switch (type)
    23902390    {
    2391         case Play: playSelected(); break;
     2391        case Play: showPlayFromPopupSelected(); break;
    23922392        case Delete: deleteSelected(); break;
    23932393    }
    23942394}
    void PlaybackBox::showActions(ProgramInf 
    25852585        showActionPopup(delitem);
    25862586}
    25872587
     2588void PlaybackBox::showPlayFromPopupSelected()
     2589{
     2590    if (!curitem)
     2591        return;
     2592
     2593    if (curitem->programflags & FL_BOOKMARK)
     2594    {
     2595      killPlayer();
     2596
     2597      if (delitem)
     2598          delete delitem;
     2599
     2600      delitem = new ProgramInfo(*curitem);
     2601
     2602      showPlayFromPopup();
     2603    }
     2604    else
     2605      playSelected();
     2606}
     2607
    25882608void PlaybackBox::showDeletePopup(ProgramInfo *program, deletePopupType types)
    25892609{
    25902610    freeSpaceNeedsUpdate = true;
    void PlaybackBox::keyPressEvent(QKeyEven 
    40144034            if (action == "DELETE")
    40154035                deleteSelected();
    40164036            else if (action == "PLAYBACK")
    4017                 playSelected();
     4037                showPlayFromPopupSelected();
    40184038            else if (action == "INFO")
    40194039                showActionsSelected();
    40204040            else if (action == "DETAILS")
  • mythtv/programs/mythfrontend/playbackbox.h

    old new class PlaybackBox : public MythDialog 
    132132    void showRecGroupChooser();
    133133    void showRecGroupPasswordChanger();
    134134    void showPlayFromPopup();
     135    void showPlayFromPopupSelected();
    135136    void showRecordingPopup();
    136137    void showJobPopup();
    137138    void showTranscodingProfiles();