]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
IPAL21493 Incorrect behaviour of Computation, Evaluation succeed dialog boxes in...
authordmv <dmv@opencascade.com>
Thu, 3 Dec 2009 12:33:02 +0000 (12:33 +0000)
committerdmv <dmv@opencascade.com>
Thu, 3 Dec 2009 12:33:02 +0000 (12:33 +0000)
src/LightApp/LightApp_Module.cxx
src/LightApp/LightApp_Module.h

index ab36849aea1a1f2a60803f64d135dfa3bc34b1be..22823451343b98bb13f4184e075f96c5c384f49a 100644 (file)
@@ -510,7 +510,7 @@ void LightApp_Module::setPreferenceProperty( const int id, const QString& prop,
 void LightApp_Module::startOperation( const int id )
 {
   LightApp_Operation* op = 0;
-  if( myOperations.contains( id ) )
+  if( myOperations.contains( id ) && reusableOperation( id ) )
     op = myOperations[ id ];
   else
   {
@@ -641,3 +641,11 @@ LightApp_Operation* LightApp_Module::operation( const int id ) const
 {
   return myOperations.contains( id ) ? myOperations[id] : 0;
 }
+
+/*!
+  virtual method called to manage the same operations
+*/
+bool LightApp_Module::reusableOperation( const int id )
+{
+ return true;
+} 
index 88ed1b44e119006c037ef546a8049677cc2415c9..9d5b40562bb08ddead9c36b2647d2edeabb39ee9 100644 (file)
@@ -115,6 +115,8 @@ protected:
 
   virtual CAM_DataModel*              createDataModel();
 
+  virtual bool                        reusableOperation( const int id );
+
   int                                 addPreference( const QString& label );
   int                                 addPreference( const QString& label, const int pId, const int = LightApp_Preferences::Auto,
                                                     const QString& section = QString(),