]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Transaction management methods automaticaly invoked from SUIT_Operation object.
authorstv <stv@opencascade.com>
Tue, 22 Nov 2005 13:30:25 +0000 (13:30 +0000)
committerstv <stv@opencascade.com>
Tue, 22 Nov 2005 13:30:25 +0000 (13:30 +0000)
src/SUIT/SUIT_Study.cxx

index 3fb1519029f08350cd588009538e1a41aba8a3ed..56e47ffd5f7e735a9f02e0992efe881f091fa8ce 100755 (executable)
@@ -433,7 +433,7 @@ void SUIT_Study::operationStarted( SUIT_Operation* op )
     return;
 
   if ( op->testFlags( SUIT_Operation::Transaction ) )
-    openTransaction();
+    op->openTransaction();
 }
 
 /*!
@@ -442,7 +442,7 @@ void SUIT_Study::operationStarted( SUIT_Operation* op )
 void SUIT_Study::operationAborted( SUIT_Operation* op )
 {
   if ( op->testFlags( SUIT_Operation::Transaction ) )
-    abortTransaction();
+    op->abortTransaction();
 }
 
 /*!
@@ -451,7 +451,7 @@ void SUIT_Study::operationAborted( SUIT_Operation* op )
 void SUIT_Study::operationCommited( SUIT_Operation* op )
 {
   if ( op->testFlags( SUIT_Operation::Transaction ) )
-    commitTransaction( op->operationName() );
+    op->commitTransaction( op->operationName() );
 }
 
 /*!