From: Soeren Apel Date: Wed, 8 Jan 2020 21:41:57 +0000 (+0100) Subject: SignalBase: Fix display_name() for empty internal names X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ef8d23e798d2b4799c4bcd13a85a1d4b7d1d897b;p=pulseview.git SignalBase: Fix display_name() for empty internal names --- diff --git a/pv/data/signalbase.cpp b/pv/data/signalbase.cpp index 78633de9..fde99e2b 100644 --- a/pv/data/signalbase.cpp +++ b/pv/data/signalbase.cpp @@ -83,7 +83,7 @@ QString SignalBase::internal_name() const QString SignalBase::display_name() const { - if (name() != internal_name_) + if ((name() != internal_name_) && (!internal_name_.isEmpty())) return name() + " (" + internal_name_ + ")"; else return name();