Ticket #13021: myth_guidegrid_v2.patch
| File myth_guidegrid_v2.patch, 2.8 KB (added by , 9 years ago) |
|---|
-
mythtv/programs/mythfrontend/guidegrid.cpp
a b 825 825 enter(); 826 826 } 827 827 } 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 ( 847 (secsTillStart < 0) && 848 (secsTillEnd > 0) && 849 (m_selectRecThreshold > 0) 850 ) 851 )) 852 { 853 ShowMenu(); 854 } 855 else 856 { 857 EditRecording(); 858 } 859 } 828 860 else 829 861 EditRecording(); 830 862 } -
mythtv/programs/mythfrontend/globalsettings.cpp
a b 2940 2940 2941 2941 static HostSpinBox *EPGRecThreshold() 2942 2942 { 2943 HostSpinBox *gs = new HostSpinBox("SelChangeRecThreshold", 1, 600, 1);2943 HostSpinBox *gs = new HostSpinBox("SelChangeRecThreshold", 0, 600, 1); 2944 2944 2945 2945 gs->setLabel(EPGSettings::tr("Record threshold")); 2946 2946 … … 2948 2948 2949 2949 gs->setHelpText(EPGSettings::tr("Pressing SELECT on a show that is at " 2950 2950 "least this many minutes into the future " 2951 "will schedule a recording.")); 2951 "will schedule a recording. " 2952 "Pressing SELECT on a show that is within " 2953 "this many minutes will pop-up the option " 2954 "for Watch TV instead of Edit Recording. " 2955 "Set to 0 to always Edit Recording.")); 2952 2956 return gs; 2953 2957 } 2954 2958
