File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
rviz_common/src/rviz_common/properties Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 40
40
#include < QLineEdit> // NOLINT: cpplint is unable to handle the include order here
41
41
#include < QSpinBox> // NOLINT: cpplint is unable to handle the include order here
42
42
#include < QString> // NOLINT: cpplint is unable to handle the include order here
43
+ #include < QTimer> // NOLINT: cpplint is unable to handle the include order here
43
44
44
45
#include " rviz_common/properties/float_edit.hpp"
45
46
#include " rviz_common/properties/property_tree_model.hpp"
@@ -386,7 +387,12 @@ void Property::setModel(PropertyTreeModel * model)
386
387
{
387
388
model_ = model;
388
389
if (model_ && hidden_) {
389
- model_->emitPropertyHiddenChanged (this );
390
+ // process propertyHiddenChanged after insertion into model has finishedAdd commentMore actions
391
+ QTimer::singleShot (0 , model_, [this ]() {
392
+ if (model_) {
393
+ model_->emitPropertyHiddenChanged (this );
394
+ }
395
+ });
390
396
}
391
397
int num_children = numChildren ();
392
398
for (int i = 0 ; i < num_children; i++) {
You can’t perform that action at this time.
0 commit comments