]> sigrok.org Git - pulseview.git/commitdiff
Fix saving of channel names in .sr files.
authorUwe Hermann <redacted>
Wed, 26 Nov 2014 17:05:57 +0000 (18:05 +0100)
committerUwe Hermann <redacted>
Wed, 26 Nov 2014 17:14:12 +0000 (18:14 +0100)
This closes bug #490.

pv/view/signal.cpp

index 767896f2ccda2d75b5063d55a0c17afaf6b7adda..ecf74f08c0fc8528c94b099de5e280902891f2b6 100644 (file)
@@ -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