Ticket #4153: mythvideo_patch.txt

File mythvideo_patch.txt, 944 bytes (added by anonymous, 12 years ago)
Line 
1Index: mythvideo/mythvideo/videobrowser.cpp
2===================================================================
3--- mythvideo/mythvideo/videobrowser.cpp        (revision 14821)
4+++ mythvideo/mythvideo/videobrowser.cpp        (working copy)
5@@ -67,9 +67,17 @@
6         else if (action == "UP")
7             jumpSelection(-1);
8         else if (action == "PAGEDOWN")
9-            jumpSelection(m_video_list->count() / 5);
10+        {
11+            if ((m_video_list->count() / 5) < 25)
12+                jumpSelection(m_video_list->count() / 5);
13+            else jumpSelection(25);
14+        }
15         else if (action == "PAGEUP")
16-            jumpSelection(-(m_video_list->count() / 5));
17+        {
18+            if ((m_video_list->count() / 5) < 25)
19+                jumpSelection(-(m_video_list->count() / 5));
20+            else jumpSelection(-25);
21+        }
22         else if (action == "LEFT")
23             cursorLeft();
24         else if (action == "RIGHT")