projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle C-strings as UTF-8
[pulseview.git]
/
pv
/
prop
/
string.cpp
diff --git
a/pv/prop/string.cpp
b/pv/prop/string.cpp
index c2b2c67c26a5c97377dff2b853759206ef65ffe7..4921129e9242bdb61c22e1c9ddb5aedfed958091 100644
(file)
--- a/
pv/prop/string.cpp
+++ b/
pv/prop/string.cpp
@@
-48,7
+48,7
@@
QWidget* String::get_widget(QWidget *parent, bool auto_commit)
GVariant *const value = _getter ? _getter() : NULL;
if (value) {
GVariant *const value = _getter ? _getter() : NULL;
if (value) {
- _line_edit->setText(QString(
+ _line_edit->setText(QString
::fromUtf8
(
g_variant_get_string(value, NULL)));
g_variant_unref(value);
}
g_variant_get_string(value, NULL)));
g_variant_unref(value);
}