projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6fd809
)
Signal: Save and load signal names as UTF-8 strings.
author
Jens Steinhauser
<jens.steinhauser@gmail.com>
Wed, 26 Nov 2014 17:32:38 +0000
(18:32 +0100)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Fri, 5 Dec 2014 18:51:53 +0000
(19:51 +0100)
This fixes bug #498.
pv/view/signal.cpp
patch
|
blob
|
history
diff --git
a/pv/view/signal.cpp
b/pv/view/signal.cpp
index afd9ca7413f4a8b426dc3f6a3a17970f6723fbdf..dad8f1edc6f106af051b82665b14350ab1542a08 100644
(file)
--- a/
pv/view/signal.cpp
+++ b/
pv/view/signal.cpp
@@
-60,7
+60,7
@@
const char *const ChannelNames[] = {
Signal::Signal(pv::Session &session,
std::shared_ptr<sigrok::Channel> channel) :
- Trace(
channel->name().c_str(
)),
+ Trace(
QString::fromUtf8(channel->name().c_str()
)),
session_(session),
channel_(channel),
name_widget_(NULL),
@@
-78,7
+78,7
@@
void Signal::set_name(QString name)
// Store the channel name in sigrok::Channel so that it
// will end up in the .sr file upon save.
- channel_->set_name(name.to
StdString
());
+ channel_->set_name(name.to
Utf8().constData
());
}
bool Signal::enabled() const