From 7bba366482faf6cd34465a67f076be7f0c41db9a Mon Sep 17 00:00:00 2001 From: Aurindam Jana Date: Tue, 5 Mar 2013 10:50:26 +0100 Subject: QmlConsole: Remove zero width space Zero width space is inserted at every punctuation to serve as a potential line break. All occurrences should be removed before sending the expression to JS engine for evaluation. Task-number: QTCREATORBUG-8859 Change-Id: I170dfd5fb0f1122ed945bb2e5f77ecaad925004b Reviewed-by: Mitch Curtis Reviewed-by: Kai Koehne --- src/plugins/qmljstools/qmlconsoleview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/qmljstools/qmlconsoleview.cpp') diff --git a/src/plugins/qmljstools/qmlconsoleview.cpp b/src/plugins/qmljstools/qmlconsoleview.cpp index 4e22626a2c..50d45b1c28 100644 --- a/src/plugins/qmljstools/qmlconsoleview.cpp +++ b/src/plugins/qmljstools/qmlconsoleview.cpp @@ -242,7 +242,7 @@ void QmlConsoleView::copyToClipboard(const QModelIndex &index) if (!index.isValid()) return; - QString contents = model()->data(index).toString(); + QString contents = model()->data(index, QmlConsoleItemModel::ExpressionRole).toString(); // See if we have file and line Info QString filePath = model()->data(index, QmlConsoleItemModel::FileRole).toString(); if (!filePath.isEmpty()) { -- cgit v1.2.1