[GME-commit] GMESRC/GME/Mga MgaProject.cpp,1.63,1.64
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Wed Jun 8 15:21:46 CDT 2005
Update of /project/gme-repository/GMESRC/GME/Mga
In directory escher:/tmp/cvs-serv3772/GME/Mga
Modified Files:
MgaProject.cpp
Log Message:
MGA now sends GLOBALEVENT_PROJECT_OPEN notification upon project creation (#GME-105)
CVS User: Peter Volgyesi, ISIS (volgy)
Index: MgaProject.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Mga/MgaProject.cpp,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** MgaProject.cpp 7 May 2005 00:14:09 -0000 1.63
--- MgaProject.cpp 8 Jun 2005 14:21:42 -0000 1.64
***************
*** 203,209 ****
COMTHROW(suhr);
COMTHROW(RegisterActiveObject((IMgaProject *)this,CLSID_MgaProject,ACTIVEOBJECT_STRONG,&rot));
StartAutoAddOns();
MARKSIG('2');
- projconn = projectname;
}
COMCATCH(
--- 203,219 ----
COMTHROW(suhr);
COMTHROW(RegisterActiveObject((IMgaProject *)this,CLSID_MgaProject,ACTIVEOBJECT_STRONG,&rot));
+ projconn = projectname;
StartAutoAddOns();
+ try {
+ COMTHROW(BeginTransaction(lm, TRANSACTION_READ_ONLY));
+ GlobalNotify(GLOBALEVENT_OPEN_PROJECT);
+ COMTHROW(lm->Flush());
+ COMTHROW(CommitTransaction());
+ } catch(hresult_exception &e) {
+ lm->Flush();
+ AbortTransaction();
+ throw e;
+ }
MARKSIG('2');
}
COMCATCH(
More information about the GME-commit
mailing list