summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-07-01 08:46:48 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-07-01 08:46:48 (GMT)
commit8af3fb34b9f5d9148d81b4f0d836b486e075f053 (patch)
tree41c70808b84871aaff85846d5e95960b835208d3 /Swift/QtUI/QtChatView.cpp
parenta30f64bc07df14f7f9b4af0dadf20d7f8173560c (diff)
downloadswift-8af3fb34b9f5d9148d81b4f0d836b486e075f053.zip
swift-8af3fb34b9f5d9148d81b4f0d836b486e075f053.tar.bz2
Don't allow labels to be lost or changed during correction.
Resolves: #871
Diffstat (limited to 'Swift/QtUI/QtChatView.cpp')
-rw-r--r--Swift/QtUI/QtChatView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatView.cpp b/Swift/QtUI/QtChatView.cpp
index a55161f..49e5974 100644
--- a/Swift/QtUI/QtChatView.cpp
+++ b/Swift/QtUI/QtChatView.cpp
@@ -169,7 +169,7 @@ void QtChatView::replaceMessage(const QString& newMessage, const QString& id, co
rememberScrolledToBottom();
QWebElement message = document_.findFirst("#" + id);
if (!message.isNull()) {
- QWebElement replaceContent = message.findFirst("span.swift_message");
+ QWebElement replaceContent = message.findFirst("span.swift_inner_message");
assert(!replaceContent.isNull());
QString old = replaceContent.toOuterXml();
replaceContent.setInnerXml(ChatSnippet::escape(newMessage));