summary refs log tree commit diff
path: root/src/timeline/InputBar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r--src/timeline/InputBar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp

index edc21e54..304e00db 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp
@@ -324,7 +324,8 @@ InputBar::message(const QString &msg, MarkdownOverride useMarkdown, bool rainbow QString body; bool firstLine = true; - for (auto line : related.quoted_body.splitRef(u'\n')) { + auto lines = related.quoted_body.splitRef(u'\n'); + for (auto line : qAsConst(lines)) { if (firstLine) { firstLine = false; body = QString("> <%1> %2\n").arg(related.quoted_user, line);