From: asl Date: Wed, 13 Jul 2005 09:34:49 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1b0ff5fed755345c1750010b3c0e8cf387d210b0;p=modules%2Fgui.git *** empty log message *** --- diff --git a/src/SalomeApp/SalomeApp_Dialog.cxx b/src/SalomeApp/SalomeApp_Dialog.cxx index a462eafd5..f4486e70b 100644 --- a/src/SalomeApp/SalomeApp_Dialog.cxx +++ b/src/SalomeApp/SalomeApp_Dialog.cxx @@ -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; diff --git a/src/SalomeApp/SalomeApp_Dialog.h b/src/SalomeApp/SalomeApp_Dialog.h index b66215401..8d99fc9c8 100644 --- a/src/SalomeApp/SalomeApp_Dialog.h +++ b/src/SalomeApp/SalomeApp_Dialog.h @@ -232,10 +232,13 @@ private: typedef QMap ObjectMap; +protected: + bool myIsBusy; + private: ObjectMap myObjects; QMap myTypeNames; - bool myIsExclusive, myIsBusy; + bool myIsExclusive; QPixmap myPixmap; };