aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchwindow.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2015-03-19 22:35:39 +0200
committerOrgad Shaneh <orgads@gmail.com>2015-03-20 11:36:23 +0000
commitd9135665f0217a5d4e2ffb574d808005b7d2ae2e (patch)
treeb51df57d098be8267b659df8dce120ea52468b38 /src/plugins/debugger/watchwindow.cpp
parent59172f9ab423be9aa8ca51ad960f1c95d09d8eb8 (diff)
Debugger: Fix removal of expression that ends with whitespace
* Start a debugging session * Add an evaluated expression "(char*)foo " * Delete the expression * Press F10 * It reappears Change-Id: I5c54ca6ab2f4be6c613880a2747e4aff653d15be Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/debugger/watchwindow.cpp')
-rw-r--r--src/plugins/debugger/watchwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/watchwindow.cpp b/src/plugins/debugger/watchwindow.cpp
index 6ff501c61e..c82a3fa5b9 100644
--- a/src/plugins/debugger/watchwindow.cpp
+++ b/src/plugins/debugger/watchwindow.cpp
@@ -1108,7 +1108,7 @@ void WatchTreeView::inputNewExpression()
"\">documentation</a>."));
dlg.setHistoryCompleter(QLatin1String("WatchItems"));
if (dlg.exec() == QDialog::Accepted) {
- QString exp = dlg.text();
+ const QString exp = dlg.text().trimmed();
if (!exp.isEmpty())
watchExpression(exp, exp);
}