1) Window didn't immediately show when signal color was changed
2) Removing a PD and adding another caused the window to stay empty
forever if "hide hidden" was enabled
3) Changing the PD showed the previous PD's content in the window
until the mouse cursor moved into the main trace view to cause a
repaint
connect(dec.get(), SIGNAL(annotation_visibility_changed()),
this, SLOT(on_annotation_visibility_changed()));
- if (hide_hidden_)
+ if (hide_hidden_) {
update_annotations_without_hidden();
- else
+ dataset_ = &all_annotations_without_hidden_;
+ } else
dataset_ = all_annotations_;
if (!dataset_ || dataset_->empty()) {
}
update_data();
+
+ // Force repaint, otherwise the new selection isn't shown for some reason
+ table_view_->viewport()->update();
}
void View::on_hide_hidden_changed(bool checked)
{
(void)color;
- table_view_->update();
+ // Force immediate repaint, otherwise it's updated after the header popup is closed
+ table_view_->viewport()->update();
}
void View::on_new_annotations()