From: Uwe Hermann Date: Wed, 26 Nov 2014 17:05:57 +0000 (+0100) Subject: Fix saving of channel names in .sr files. X-Git-Tag: pulseview-0.3.0~422 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ead4af1fb22bc2f2b0342bcd71de9d2af56ef571;p=pulseview.git Fix saving of channel names in .sr files. This closes bug #490. --- diff --git a/pv/view/signal.cpp b/pv/view/signal.cpp index 767896f2..ecf74f08 100644 --- a/pv/view/signal.cpp +++ b/pv/view/signal.cpp @@ -75,6 +75,10 @@ void Signal::set_name(QString name) updating_name_widget_ = true; name_widget_->setEditText(name); updating_name_widget_ = false; + + // Store the channel name in sigrok::Channel so that it + // will end up in the .sr file upon save. + channel_->set_name(name.toStdString()); } bool Signal::enabled() const