Skip to content

Commit 0912c13

Browse files
committed
Allow the PREVCHAN keybinding to act the same as JUMPPREV while watching a
normal recording. Closes #4434, but applies a different patch and almost reverse logic. The patch in the ticket removed PREVCHAN and made JUMPPREV serve double-duty making it go to the previous channel in LiveTV and the previous program while watching a recording. This would have lost functionality though, because it is a valid action to jump from LiveTV to a previous recording. This patch allows the user to map only PREVCHAN if they want to and use it in LiveTV to jump to the previous channel and use the same key to jump back to the previous recording when watching a recording. It does not prevent the user from mapping both PREVCHAN and JUMPPREV to different keys, it does allow both to be used to jump to the previous recording when not in LiveTV. git-svn-id: http://svn.mythtv.org/svn/trunk@15795 7dbf422c-18fa-0310-86e9-fd20926502f2
1 parent e1dfb99 commit 0912c13

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mythtv/libs/libmythtv/tv_play.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3151,7 +3151,8 @@ void TV::ProcessKeypress(QKeyEvent *e)
31513151
{
31523152
ClearOSD();
31533153
}
3154-
else if (action == "JUMPPREV")
3154+
else if ((action == "JUMPPREV") ||
3155+
((action == "PREVCHAN") && (!StateIsLiveTV(GetState()))))
31553156
{
31563157
if (PromptRecGroupPassword())
31573158
{
@@ -7218,7 +7219,8 @@ void TV::TreeMenuSelected(OSDListTreeType *tree, OSDGenericTree *item)
72187219
EditSchedule(kScheduleProgramFinder);
72197220
else if (action == "SCHEDULE")
72207221
EditSchedule(kScheduledRecording);
7221-
else if (action == "JUMPPREV")
7222+
else if ((action == "JUMPPREV") ||
7223+
((action == "PREVCHAN") && (!StateIsLiveTV(GetState()))))
72227224
{
72237225
if (PromptRecGroupPassword())
72247226
{

0 commit comments

Comments
 (0)