Keep the highlight field after user changes the value for time/date opcode
Signed-off-by:ydong10 Reviewed-by:lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11975 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1946,6 +1946,7 @@ UiDisplayMenu (
|
||||
// Highlight not specified, fetch it from cached menu
|
||||
//
|
||||
Selection->QuestionId = CurrentMenu->QuestionId;
|
||||
Selection->Sequence = CurrentMenu->Sequence;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -2317,7 +2318,9 @@ UiDisplayMenu (
|
||||
NewPos = gMenuOption.ForwardLink;
|
||||
SavedMenuOption = MENU_OPTION_FROM_LINK (NewPos);
|
||||
|
||||
while (SavedMenuOption->ThisTag->QuestionId != Selection->QuestionId && NewPos->ForwardLink != &gMenuOption) {
|
||||
while ((SavedMenuOption->ThisTag->QuestionId != Selection->QuestionId ||
|
||||
SavedMenuOption->Sequence != Selection->Sequence) &&
|
||||
NewPos->ForwardLink != &gMenuOption) {
|
||||
NewPos = NewPos->ForwardLink;
|
||||
SavedMenuOption = MENU_OPTION_FROM_LINK (NewPos);
|
||||
}
|
||||
@@ -2453,6 +2456,7 @@ UiDisplayMenu (
|
||||
// Record highlight for current menu
|
||||
//
|
||||
CurrentMenu->QuestionId = Statement->QuestionId;
|
||||
CurrentMenu->Sequence = MenuOption->Sequence;
|
||||
|
||||
//
|
||||
// Set reverse attribute
|
||||
|
Reference in New Issue
Block a user