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
+9
View File
@@ -115,6 +115,7 @@ Split::Split(QWidget *parent)
});
this->updateInputPlaceholder();
// clear SplitInput selection when selecting in ChannelView
this->view_->selectionChanged.connect([this]() {
if (this->input_->hasSelection())
{
@@ -122,6 +123,14 @@ Split::Split(QWidget *parent)
}
});
// clear ChannelView selection when selecting in SplitInput
this->input_->selectionChanged.connect([this]() {
if (this->view_->hasSelection())
{
this->view_->clearSelection();
}
});
this->view_->openChannelIn.connect([this](
QString twitchChannel,
FromTwitchLinkOpenChannelIn openIn) {