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 );
}
}
{
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 );
}
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;
typedef QMap<int, Object> ObjectMap;
+protected:
+ bool myIsBusy;
+
private:
ObjectMap myObjects;
QMap<int,QString> myTypeNames;
- bool myIsExclusive, myIsBusy;
+ bool myIsExclusive;
QPixmap myPixmap;
};