diff --git a/src/plugins/projectexplorer/environmenteditmodel.cpp b/src/plugins/projectexplorer/environmenteditmodel.cpp index de116228aeac705c33fb2ce7531276c1631d5935..eb177b63a2af3fb2b72a3a33ee87ee0042170cdf 100644 --- a/src/plugins/projectexplorer/environmenteditmodel.cpp +++ b/src/plugins/projectexplorer/environmenteditmodel.cpp @@ -31,6 +31,8 @@ #include <utils/detailswidget.h> + +#include <QtGui/QTextDocument> #include <QtGui/QVBoxLayout> #include <QtGui/QHeaderView> #include <QtGui/QToolButton> @@ -491,9 +493,9 @@ void EnvironmentWidget::updateSummaryText() if (item.name != EnvironmentModel::tr("<VARIABLE>")) { text.append("<br>"); if (item.unset) - text.append(tr("Unset <b>%1</b>").arg(item.name)); + text.append(tr("Unset <b>%1</b>").arg(Qt::escape(item.name))); else - text.append(tr("Set <b>%1</b> to <b>%2</b>").arg(item.name, item.value)); + text.append(tr("Set <b>%1</b> to <b>%2</b>").arg(Qt::escape(item.name), Qt::escape(item.value))); } }