mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	Fixed handling actions in Recordings Info/Edit in case the recording is being replayed
This commit is contained in:
		
							
								
								
									
										14
									
								
								menu.c
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								menu.c
									
									
									
									
									
								
							| @@ -4,7 +4,7 @@ | |||||||
|  * See the main source file 'vdr.c' for copyright information and |  * See the main source file 'vdr.c' for copyright information and | ||||||
|  * how to reach the author. |  * how to reach the author. | ||||||
|  * |  * | ||||||
|  * $Id: menu.c 3.8 2013/10/14 09:53:53 kls Exp $ |  * $Id: menu.c 3.9 2013/10/14 10:28:10 kls Exp $ | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #include "menu.h" | #include "menu.h" | ||||||
| @@ -2386,18 +2386,14 @@ eOSState cMenuRecordingEdit::ProcessKey(eKeys Key) | |||||||
|      } |      } | ||||||
|   eOSState state = cOsdMenu::ProcessKey(Key); |   eOSState state = cOsdMenu::ProcessKey(Key); | ||||||
|   if (state == osUnknown) { |   if (state == osUnknown) { | ||||||
|      if (!recordingIsInUse) { |  | ||||||
|      switch (Key) { |      switch (Key) { | ||||||
|           case kRed:    return Folder(); |        case kRed:    return buttonFolder ? Folder() : osContinue; | ||||||
|           case kGreen:  return Action(); |        case kGreen:  return buttonAction ? Action() : osContinue; | ||||||
|           case kYellow: return DeleteMarks(); |        case kYellow: return buttonDeleteMarks ? DeleteMarks() : osContinue; | ||||||
|           case kOk:     return ApplyChanges(); |        case kOk:     return !recordingIsInUse ? ApplyChanges() : osBack; | ||||||
|        default: break; |        default: break; | ||||||
|        } |        } | ||||||
|      } |      } | ||||||
|      else if (Key == kOk) |  | ||||||
|         return osBack; |  | ||||||
|      } |  | ||||||
|   else if (state == osEnd && HasSubMenu()) |   else if (state == osEnd && HasSubMenu()) | ||||||
|      state = SetFolder(); |      state = SetFolder(); | ||||||
|   return state; |   return state; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user