]> sigrok.org Git - pulseview.git/commitdiff
SignalBase: Fix display_name() for empty internal names
authorSoeren Apel <redacted>
Wed, 8 Jan 2020 21:41:57 +0000 (22:41 +0100)
committerSoeren Apel <redacted>
Fri, 10 Jan 2020 21:20:35 +0000 (22:20 +0100)
pv/data/signalbase.cpp

index 78633de977706ac5947969f1138fb340562a170a..fde99e2b4619a3cadf2b2acd01a862759c183d3f 100644 (file)
@@ -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();