diff options
author | Aurindam Jana <aurindam.jana@digia.com> | 2013-03-05 10:50:26 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@digia.com> | 2013-03-05 14:37:26 +0100 |
commit | 7bba366482faf6cd34465a67f076be7f0c41db9a (patch) | |
tree | 03ec024e14d615172858e78be4f944ebae981b20 /src/plugins/qmljstools/qmlconsoleview.cpp | |
parent | f57795aaf28ac97e309fa2c12d40ff7374697f5d (diff) | |
download | qt-creator-7bba366482faf6cd34465a67f076be7f0c41db9a.tar.gz |
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 <mitch.curtis@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/plugins/qmljstools/qmlconsoleview.cpp')
-rw-r--r-- | src/plugins/qmljstools/qmlconsoleview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()) { |