#include <QLabel>
#include <QVBoxLayout>
#include <QTextEdit>
+#include <QTextCodec>
XGUI_ErrorDialog::XGUI_ErrorDialog(QWidget* parent)
: QDialog(parent)
void XGUI_ErrorDialog::addError(std::shared_ptr<Events_InfoMessage> theMsg)
{
std::string aError = Config_Translator::translate(theMsg);
- myErrors.append(aError.c_str());
+ std::string aCodec = Config_Translator::codec(theMsg->context());
+ QString aMsg = QTextCodec::codecForName(aCodec.c_str())->toUnicode(aError.c_str());
+ myErrors.append(aMsg);
refresh();
if (!isVisible()) {
show();