X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fstring.cpp;h=4921129e9242bdb61c22e1c9ddb5aedfed958091;hp=b8f3351cf8fb2acbc160a7bcd41bfb529443ddd3;hb=ac223c1e07cb56b69c8a11b94014a0ad3ccf393f;hpb=b1fe148e0dce6e369c9d4770ca935a6a9ec94b59 diff --git a/pv/prop/string.cpp b/pv/prop/string.cpp index b8f3351c..4921129e 100644 --- a/pv/prop/string.cpp +++ b/pv/prop/string.cpp @@ -20,6 +20,7 @@ #include +#include #include #include "string.h" @@ -47,7 +48,7 @@ QWidget* String::get_widget(QWidget *parent, bool auto_commit) 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); }