From 1240bd53b5ba4b96c9898adf10676613f5f409c0 Mon Sep 17 00:00:00 2001 From: nerix Date: Sun, 8 Sep 2024 22:05:15 +0200 Subject: [PATCH] fix: only clear reply target when inline replying (#5586) --- CHANGELOG.md | 2 +- src/widgets/splits/SplitInput.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07bec5f95..ff3d55259 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ - Minor: Improve appearance of reply button. (#5491) - Minor: Introduce HTTP API for plugins. (#5383, #5492, #5494) - Minor: Support more Firefox variants for incognito link opening. (#5503) -- Minor: Replying to a message will now display the message being replied to. (#4350, #5519) +- Minor: Replying to a message will now display the message being replied to. (#4350, #5519, #5586) - Minor: Links can now have prefixes and suffixes such as parentheses. (#5486, #5515) - Minor: Added support for scrolling in splits with touchscreen panning gestures. (#5524) - Minor: Removed experimental IRC support. (#5547) diff --git a/src/widgets/splits/SplitInput.cpp b/src/widgets/splits/SplitInput.cpp index b45928a82..3158e4c06 100644 --- a/src/widgets/splits/SplitInput.cpp +++ b/src/widgets/splits/SplitInput.cpp @@ -1223,7 +1223,10 @@ void SplitInput::clearInput() this->currMsg_ = ""; this->ui_.textEdit->setText(""); this->ui_.textEdit->moveCursor(QTextCursor::Start); - this->clearReplyTarget(); + if (this->enableInlineReplying_) + { + this->clearReplyTarget(); + } } void SplitInput::clearReplyTarget()