[GME-commit] GMESRC/GME/Gme GMEView.cpp,1.153,1.154
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Tue Sep 14 10:02:47 CDT 2004
Update of /var/lib/gme/GMESRC/GME/Gme
In directory braindrain:/tmp/cvs-serv1106
Modified Files:
GMEView.cpp
Log Message:
no message
CVS User: bogyom
Index: GMEView.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/GMEView.cpp,v
retrieving revision 1.153
retrieving revision 1.154
diff -C2 -d -r1.153 -r1.154
*** GMEView.cpp 22 Jul 2004 14:05:36 -0000 1.153
--- GMEView.cpp 14 Sep 2004 14:02:45 -0000 1.154
***************
*** 87,90 ****
--- 87,93 ----
// PETER END
break;
+ case GLOBALEVENT_ABORT_TRANSACTION:
+ view->Reset(true);
+ break;
case GLOBALEVENT_NOTIFICATION_READY:
VERIFY(view);
***************
*** 104,108 ****
attrNeedsRefresh = false;
}
! break;
}
CGMEView::inEventHandler = false;
--- 107,111 ----
attrNeedsRefresh = false;
}
! break;
}
CGMEView::inEventHandler = false;
***************
*** 2845,2848 ****
--- 2848,2852 ----
CGMEEventLogger::LogGMEEvent(" Unable to insert objects.\r\n");
newObjectIDs.RemoveAll();
+ Reset(true); //BGY
return false;
}
***************
*** 3122,3125 ****
--- 3126,3131 ----
AbortTransaction(e.hr);
// AfxMessageBox("Unable to connect specified parts!",MB_ICONSTOP | MB_OK);
+ Reset(true); // BGY: something similar needed, otherwise the created conenction not
+ // deleted form the gui if the committransaction failed
ret = false;
}
***************
*** 4163,4167 ****
ResetParent();
}
! catch(hresult_exception e) {
AbortTransaction(e.hr);
CGMEEventLogger::LogGMEEvent(" Unable to complete drop operation.\r\n");
--- 4169,4173 ----
ResetParent();
}
! catch(hresult_exception e) {
AbortTransaction(e.hr);
CGMEEventLogger::LogGMEEvent(" Unable to complete drop operation.\r\n");
More information about the GME-commit
mailing list