[commit] r2677 - trunk/GME/Gme
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Mon Jun 26 11:06:34 CDT 2017
Author: ksmyth
Date: Mon Jun 26 11:06:34 2017
New Revision: 2677
Log:
Dont need tx on Sync Aspects
Modified:
trunk/GME/Gme/GMEView.cpp
Modified: trunk/GME/Gme/GMEView.cpp
==============================================================================
--- trunk/GME/Gme/GMEView.cpp Tue May 16 15:56:55 2017 (r2676)
+++ trunk/GME/Gme/GMEView.cpp Mon Jun 26 11:06:34 2017 (r2677)
@@ -9295,15 +9295,11 @@
{
CGMEEventLogger::LogGMEEvent(_T("CGMEView::OnEditSync in ")+path+name+_T("\r\n"));
CAspectSyncDlg dlg;
- VARIANT_BOOL isInstance = VARIANT_TRUE;
- BeginTransaction();
- HRESULT hr = currentModel->get_IsInstance(&isInstance);
- AbortTransaction(E_FAIL);
- ASSERT(SUCCEEDED(hr));
- if (isInstance != VARIANT_FALSE) {
+ if (IsInstance()) {
AfxMessageBox(L"Cannot synchronize aspects for instances", MB_ICONEXCLAMATION);
return;
}
+
dlg.m_srcAspect = currentAspect;
POSITION apos = guiMeta->aspects.GetHeadPosition();
while (apos) {
More information about the gme-commit
mailing list