dabo Commit
Revision 4931
Date: 2009-01-14 15:37:14 -0800 (Wed, 14 Jan 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/4931

Changed:
U   trunk/dabo/ui/dDataControlMixinBase.py

Log:
Only raise InteractiveChange if the Value is different.


Diff:
Modified: trunk/dabo/ui/dDataControlMixinBase.py
===================================================================
--- trunk/dabo/ui/dDataControlMixinBase.py      2009-01-14 20:55:45 UTC (rev 
4930)
+++ trunk/dabo/ui/dDataControlMixinBase.py      2009-01-14 23:37:14 UTC (rev 
4931)
@@ -184,10 +184,6 @@
                isChanged = False
                oldVal = self._oldVal
 
-               if self._userChanged:
-                       self.raiseEvent(dabo.dEvents.InteractiveChange, 
oldVal=oldVal)
-                       self._userChanged = False
-               
                if oldVal is None and curVal is None:
                        # Could be changed and we just don't know it...
                        isChanged = True
@@ -203,6 +199,10 @@
                        else:
                                isChanged = (curVal != oldVal)
                if isChanged:
+                       if self._userChanged:
+                               self.raiseEvent(dabo.dEvents.InteractiveChange, 
oldVal=oldVal)
+                               self._userChanged = False
+               
                        if not self._DesignerMode:
                                if self.DataSource and self.DataField:
                                        src = self.Source




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to