]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message ***
authorasl <asl@opencascade.com>
Wed, 13 Jul 2005 09:34:49 +0000 (09:34 +0000)
committerasl <asl@opencascade.com>
Wed, 13 Jul 2005 09:34:49 +0000 (09:34 +0000)
src/SalomeApp/SalomeApp_Dialog.cxx
src/SalomeApp/SalomeApp_Dialog.h

index a462eafd5fe4df1725eb2b65aed8dd1c5a0c1b98..f4486e70b629915956c6d68ecfd62bb649be25cf 100644 (file)
@@ -215,7 +215,8 @@ void SalomeApp_Dialog::clearSelection( const int id )
     myObjects[ id ].myTypes.clear();
     myObjects[ id ].myNames.clear();
     
-    myObjects[ id ].myEdit->setText( QString::null );
+    if( !myIsBusy )
+      myObjects[ id ].myEdit->setText( QString::null );
     emit selectionChanged( id );
   }
 }
@@ -493,7 +494,8 @@ void SalomeApp_Dialog::updateObject( const int id, bool emit_signal )
   {
     Object& obj = myObjects[ id ];
     filterTypes( id, obj.myNames, obj.myTypes, obj.myIds );
-    obj.myEdit->setText( selectionDescription( obj.myNames, obj.myTypes, obj.myNI ) );
+    if( !myIsBusy )
+      obj.myEdit->setText( selectionDescription( obj.myNames, obj.myTypes, obj.myNI ) );
     if( emit_signal )
       emit selectionChanged( id );
   }
@@ -737,7 +739,8 @@ void SalomeApp_Dialog::selectObject( const int id, const QStringList& _names, co
   filterTypes( id, names, types, ids );
 
   Object& obj = myObjects[ id ];
-  obj.myEdit->setText( selectionDescription( names, types, obj.myNI ) );
+  if( !myIsBusy )
+    obj.myEdit->setText( selectionDescription( names, types, obj.myNI ) );
   obj.myTypes = types;
   obj.myIds = ids;
   obj.myNames = names;
index b662154011a8267c050fc03a7dd4f263c2121ed3..8d99fc9c81d7664858138c5f3d1225cefb39b8a0 100644 (file)
@@ -232,10 +232,13 @@ private:
   
   typedef QMap<int, Object> ObjectMap;
 
+protected:
+  bool myIsBusy;
+  
 private:
   ObjectMap           myObjects;
   QMap<int,QString>   myTypeNames;
-  bool                myIsExclusive, myIsBusy;
+  bool                myIsExclusive;
   QPixmap             myPixmap;
 };