Fix selection clearing not working in Reply window (#4218)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
kornes
2022-12-07 18:21:04 +00:00
committed by GitHub
parent e68a3fcd30
commit a16d148dfd
5 changed files with 29 additions and 2 deletions
+16
View File
@@ -89,6 +89,22 @@ ReplyThreadPopup::ReplyThreadPopup(bool closeAutomatically, QWidget *parent,
this->updateInputUI();
}));
// clear SplitInput selection when selecting in ChannelView
this->ui_.threadView->selectionChanged.connect([this]() {
if (this->ui_.replyInput->hasSelection())
{
this->ui_.replyInput->clearSelection();
}
});
// clear ChannelView selection when selecting in SplitInput
this->ui_.replyInput->selectionChanged.connect([this]() {
if (this->ui_.threadView->hasSelection())
{
this->ui_.threadView->clearSelection();
}
});
layout->setSpacing(0);
// provide draggable margin if frameless
auto marginPx = closeAutomatically ? 15 : 1;