]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Check the question value before call CHANGED. Only when question value has been chang...
authorEric Dong <eric.dong@intel.com>
Tue, 21 Oct 2014 05:50:06 +0000 (05:50 +0000)
committerydong10 <ydong10@Edk2>
Tue, 21 Oct 2014 05:50:06 +0000 (05:50 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16222 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c

index f0617f81b3db7667d652f6817e522d7147f6b154..bfb8afc140f52d9b42b064e846e61000164a8355 100644 (file)
@@ -2426,7 +2426,12 @@ SetupBrowser (
         //\r
         IsQuestionValueChanged(gCurrentSelection->FormSet, gCurrentSelection->Form, Statement, GetSetValueWithBuffer);\r
 \r
-        if (!EFI_ERROR (Status) && Statement->Operand != EFI_IFR_REF_OP) {\r
+        if (!EFI_ERROR (Status) && \r
+            (Statement->Operand != EFI_IFR_REF_OP) && \r
+            ((Statement->Storage == NULL) || (Statement->Storage != NULL && Statement->ValueChanged))) {\r
+          //\r
+          // Only question value has been changed, browser will trig CHANGED callback.\r
+          //\r
           ProcessCallBackFunction(Selection, Selection->FormSet, Selection->Form, Statement, EFI_BROWSER_ACTION_CHANGED, FALSE);\r
         }\r
       } else {\r