From: Soeren Apel Date: Mon, 10 Jul 2017 17:14:35 +0000 (+0200) Subject: DecodeSignal: Don't set name when creating the signal X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=289c1bdc7e113c56f4829550ae894458bfab10a3;p=pulseview.git DecodeSignal: Don't set name when creating the signal The thought behind this was to have no unnamed signals because this may make debugging harder. However, giving the signal a long name and shortening it when decoders are added isn't working well. The reason is that the width of the header area can be expanded programmatically but we don't shrink it because we don't want to hide things the user may want to see. This behavior in turn leads to the header width expanding when a signal labeled "Empty decoder signal" is added, only to see this very signal be renamed to e.g. "SPI" immediately afterwards. As we don't shrink the header width, the header is now too wide. --- diff --git a/pv/data/decodesignal.cpp b/pv/data/decodesignal.cpp index 8cbf230d..daa52ed6 100644 --- a/pv/data/decodesignal.cpp +++ b/pv/data/decodesignal.cpp @@ -62,8 +62,6 @@ DecodeSignal::DecodeSignal(pv::Session &session) : { connect(&session_, SIGNAL(capture_state_changed(int)), this, SLOT(on_capture_state_changed(int))); - - set_name(tr("Empty decoder signal")); } DecodeSignal::~DecodeSignal()