Revision: 16222
          http://sourceforge.net/p/edk2/code/16222
Author:   ydong10
Date:     2014-10-21 05:50:06 +0000 (Tue, 21 Oct 2014)
Log Message:
-----------
Check the question value before call CHANGED. Only when question value has been 
changed, browser will call CHANGED callback type.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <[email protected]>
Reviewed-by: Liming Gao <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c

Modified: trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c
===================================================================
--- trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c    
2014-10-21 05:48:00 UTC (rev 16221)
+++ trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c    
2014-10-21 05:50:06 UTC (rev 16222)
@@ -2426,7 +2426,12 @@
         //
         IsQuestionValueChanged(gCurrentSelection->FormSet, 
gCurrentSelection->Form, Statement, GetSetValueWithBuffer);
 
-        if (!EFI_ERROR (Status) && Statement->Operand != EFI_IFR_REF_OP) {
+        if (!EFI_ERROR (Status) && 
+            (Statement->Operand != EFI_IFR_REF_OP) && 
+            ((Statement->Storage == NULL) || (Statement->Storage != NULL && 
Statement->ValueChanged))) {
+          //
+          // Only question value has been changed, browser will trig CHANGED 
callback.
+          //
           ProcessCallBackFunction(Selection, Selection->FormSet, 
Selection->Form, Statement, EFI_BROWSER_ACTION_CHANGED, FALSE);
         }
       } else {


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to