| 828 | else if (!m_player) |
| 829 | { |
| 830 | // If the selected program is close enough to now and not |
| 831 | // currently viewing livetv, presume it possible that the |
| 832 | // user wanted to watch via livetv instead of editing |
| 833 | // the recording rule. |
| 834 | ProgramInfo *pginfo = |
| 835 | m_programInfos[m_currentRow][m_currentCol]; |
| 836 | int secsTillStart = |
| 837 | (pginfo) ? MythDate::current().secsTo( |
| 838 | pginfo->GetScheduledStartTime()) : 0; |
| 839 | int secsTillEnd = |
| 840 | (pginfo) ? MythDate::current().secsTo( |
| 841 | pginfo->GetScheduledEndTime()) : 0; |
| 842 | if (pginfo && (pginfo->GetTitle() != kUnknownTitle) && |
| 843 | ( |
| 844 | ((abs(secsTillStart / 60)) <= m_selectRecThreshold) || |
| 845 | ((abs(secsTillEnd / 60)) <= m_selectRecThreshold) || |
| 846 | ((secsTillStart < 0) && (secsTillEnd > 0)) |
| 847 | )) |
| 848 | { |
| 849 | ShowMenu(); |
| 850 | } |
| 851 | else |
| 852 | { |
| 853 | EditRecording(); |
| 854 | } |
| 855 | } |