From: Joel Holdsworth Date: Sat, 15 Mar 2014 07:48:49 +0000 (+0100) Subject: Don't allow disabled probes to be selected X-Git-Tag: pulseview-0.2.0~17 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=32d83ce1a26322a433785746ea7465f9bdf830b6;p=pulseview.git Don't allow disabled probes to be selected This fixes #313 --- diff --git a/pv/view/trace.cpp b/pv/view/trace.cpp index d4bc69f2..d10448f3 100644 --- a/pv/view/trace.cpp +++ b/pv/view/trace.cpp @@ -165,7 +165,7 @@ bool Trace::pt_in_label_rect(int left, int right, const QPoint &point) (void)left; const QRectF label = get_label_rect(right); - return QRectF( + return enabled() && QRectF( QPointF(label.left() - LabelHitPadding, label.top() - LabelHitPadding), QPointF(right, label.bottom() + LabelHitPadding)