summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2011-05-17 16:47:10 +0200
committerhjk <qthjk@ovi.com>2011-06-08 16:30:59 +0200
commit87c515d1a39a886b75fb5a4a0263449b152e830f (patch)
tree1732a8221accd5417a319e192779c919dea02599
parent1a5df408836875a7f867411145a377d9a7bc9b16 (diff)
downloadqt-creator-87c515d1a39a886b75fb5a4a0263449b152e830f.tar.gz
debugger: show something when editing
(cherry picked from commit 752066d0431566447220958945bebd9ba81bed66) Change-Id: If24dfee05b8039b1f091e8f88e8d59155f2bd7dx Reviewed-on: http://codereview.qt.nokia.com/389 Reviewed-by: hjk <qthjk@ovi.com>
-rw-r--r--src/plugins/debugger/watchhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index ea135f2216..996cee7ccf 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -441,7 +441,7 @@ static inline QVariant editValue(const WatchData &d)
break;
}
// Replace newlines, which will cause line edit troubles.
- QString stringValue;
+ QString stringValue = d.value;
stringValue.replace(QLatin1String("\n"), QLatin1String("\\n"));
return QVariant(stringValue);
}