Fix selection clearing not working in Reply window (#4218)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user