Ticket #2170: exit_with_left_key_from_video_listing_like_from_recording_listing.diff
File exit_with_left_key_from_video_listing_like_from_recording_listing.diff, 2.2 KB (added by , 18 years ago) |
---|
-
mythvideo/mythvideo/videotree.cpp
old new 17 17 18 18 #include "videofilter.h" 19 19 #include "videolist.h" 20 20 21 const long WATCHED_WATERMARK = 10000; // Less than this and the chain of videos will 21 22 // not be followed when playing. 22 23 … … 84 85 video_tree_list->moveUp(); 85 86 else if (action == "DOWN") 86 87 video_tree_list->moveDown(); 87 else if (action == "LEFT") 88 video_tree_list->popUp(); 88 else if (action == "LEFT") 89 { 90 if (video_tree_list->getCurrentNode()->getParent() != video_tree_root) 91 { 92 video_tree_list->popUp(); 93 } else 94 { 95 // if we are at root, exit from the dialog, to make 96 // the behavior similar to the recorded shows dialog 97 done(1); 98 } 99 } 89 100 else if (action == "RIGHT") 90 101 video_tree_list->pushDown(); 91 102 else if (action == "PAGEUP") … … 109 120 handled = false; 110 121 } 111 122 112 123 if (!handled) 113 124 { 114 125 115 gContext->GetMainWindow()->TranslateKeyPress("TV Frontend", e, actions);126 gContext->GetMainWindow()->TranslateKeyPress("TV Frontend", e, actions); 116 127 117 128 for (unsigned int i = 0; i < actions.size() && !handled; i++) 118 129 { … … 125 136 } 126 137 } 127 138 128 129 139 if (!handled) 130 140 MythThemedDialog::keyPressEvent(e); 131 141 } … … 241 251 int file_browser = gContext->GetNumSetting("VideoTreeNoDB", 0); 242 252 243 253 video_tree_root = video_list->buildVideoList(file_browser, false, 244 current_parental_level);254 current_parental_level); 245 255 if (video_tree_root->childCount() > 0) 246 256 video_tree_data = video_tree_root->getChildAt(0,0); 247 257 else video_tree_data = video_tree_root;