//=======================================================================
SMESHGUI_FilterTable::SMESHGUI_FilterTable( QWidget* parent,
const int type )
-: QFrame( parent )
+: QFrame( parent ),
+ myIsLocked( false )
{
myEntityType = -1;
Init( type );
//=======================================================================
SMESHGUI_FilterTable::SMESHGUI_FilterTable( QWidget* parent,
const QValueList<int>& types )
-: QFrame( parent )
+: QFrame( parent ),
+ myIsLocked( false )
{
myEntityType = -1;
Init( types );
//=======================================================================
void SMESHGUI_FilterTable::onCurrentChanged( int theRow, int theCol )
{
- updateAdditionalWidget();
+ if( !myIsLocked )
+ updateAdditionalWidget();
emit CurrentChanged( theRow, theCol );
}
int aSelectedRow = getFirstSelectedRow();
int aCurrCol = theTable->currentColumn();
+ myIsLocked = true;
if ( toTheEnd || aSelectedRow == -1 )
{
theTable->insertRows( theTable->numRows() );
theTable->insertRows( aSelectedRow );
aCurrRow = aSelectedRow;
}
+ myIsLocked = false;
// Criteria
theTable->setItem( aCurrRow, 0, getCriterionItem( theTable, theType ) );