Ticket #8051 (inprogress)

Opened 7 years ago

Last modified 5 years ago

InstrumentSelector generates bad signals when filtering by technique

Reported by: Samuel Jackson Owned by:
Priority: major Milestone: Backlog
Component: GUI Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

The instrument selector widget provides a signal called instrumentSelectionChanged() which is emitted every time the index of the combo box changes.

When filtering instruments by technique, the widget removes irrelevant instruments from the list using removeItem() (see line 210 in the cpp file). This causes the instrumentSelectionChanged() signal to be emitted every time an instrument is removed. This can cause issues with slow code listening to this event (such as loading an IDF file).

A better approach would probably be to block signals from being emitted while filtering the instruments and to check if there are any other places in the widget that could be emitting signals that shouldn't be listened too.

Change History

comment:1 Changed 7 years ago by Samuel Jackson

  • Summary changed from InstrumentSelector generates signals when filtering by technique to InstrumentSelector generates bad signals when filtering by technique

comment:2 Changed 7 years ago by Nick Draper

  • Status changed from new to assigned

Bulk move to assigned at the introduction of the triage step

comment:3 Changed 6 years ago by Federico Montesino Pouzols

  • Status changed from assigned to inprogress

Address complaint from cppcheck, prefer prefix--, re #8051

Changeset: bbecdb2cfb934335d0d154547808870320312540

comment:4 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 8896

Note: See TracTickets for help on using tickets.