]> sigrok.org Git - pulseview.git/commitdiff
Don't allow disabled probes to be selected
authorJoel Holdsworth <redacted>
Sat, 15 Mar 2014 07:48:49 +0000 (08:48 +0100)
committerJoel Holdsworth <redacted>
Sat, 15 Mar 2014 07:48:49 +0000 (08:48 +0100)
This fixes #313

pv/view/trace.cpp

index d4bc69f2f93346222c57861d5b26c4bc3157754f..d10448f3eac071b535df4c25148a42700eb70486 100644 (file)
@@ -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)