[commit] r1719 - trunk/GME/Mga

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Thu Dec 1 12:37:33 CST 2011


Author: ksmyth
Date: Thu Dec  1 12:37:33 2011
New Revision: 1719

Log:
Fix bug with notifications being lost when there is no nested tx (e.g. registry change (set connection autorouter pref) or flag MGAPREF_NO_NESTED_TX

Modified:
   trunk/GME/Mga/MgaProject.cpp

Modified: trunk/GME/Mga/MgaProject.cpp
==============================================================================
--- trunk/GME/Mga/MgaProject.cpp	Thu Dec  1 12:37:21 2011	(r1718)
+++ trunk/GME/Mga/MgaProject.cpp	Thu Dec  1 12:37:33 2011	(r1719)
@@ -1349,6 +1349,10 @@
 		ASSERT(!in_nested);
 		if(!baseterr) COMTHROW(E_MGA_NOT_IN_TRANSACTION);
 		if(checkoff) COMTHROW(CheckSupress(VARIANT_FALSE));
+		while (!temporalobjs.empty()) {
+			temporalobjs.front()->objrecordchange();
+			temporalobjs.pop();
+		}
 		if(!notifyobjs.empty()) {
 			CoreObj self;
 			COMTHROW(dataproject->get_RootObject(&self.ComPtr()));


More information about the gme-commit mailing list