mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fix context menu not opening when username is right clicked from usercard/search/reply window (#4122)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
parent
3ed7489e0f
commit
8fa89b4073
|
@ -84,6 +84,7 @@
|
|||
- Bugfix: Fixed `Add new account` dialog causing main chatterino window to be non movable. (#4121)
|
||||
- Bugfix: Connection to Twitch PubSub now recovers more reliably. (#3643, #3716)
|
||||
- Bugfix: Fixed `Smooth scrolling on new messages` setting sometimes hiding messages. (#4028)
|
||||
- Bugfix: Fixed context menu not opening when username is right clicked from usercard/search/reply window. (#4122)
|
||||
- Bugfix: Fixed a crash that can occur when closing and quickly reopening a split, then running a command. (#3852)
|
||||
- Bugfix: Fixed a crash that can occur when changing channels. (#3799)
|
||||
- Bugfix: Fixed viewers list search not working when used before loading finishes. (#3774)
|
||||
|
|
|
@ -1991,16 +1991,17 @@ void ChannelView::handleMouseClick(QMouseEvent *event,
|
|||
}
|
||||
break;
|
||||
case Qt::RightButton: {
|
||||
auto split = dynamic_cast<Split *>(this->parentWidget());
|
||||
auto insertText = [=](QString text) {
|
||||
if (split)
|
||||
{
|
||||
split->insertTextToInput(text);
|
||||
}
|
||||
};
|
||||
|
||||
if (hoveredElement != nullptr)
|
||||
// insert user mention to input, only in default context
|
||||
if ((this->context_ == Context::None) &&
|
||||
(hoveredElement != nullptr))
|
||||
{
|
||||
auto split = dynamic_cast<Split *>(this->parentWidget());
|
||||
auto insertText = [=](QString text) {
|
||||
if (split)
|
||||
{
|
||||
split->insertTextToInput(text);
|
||||
}
|
||||
};
|
||||
const auto &link = hoveredElement->getLink();
|
||||
|
||||
if (link.type == Link::UserInfo)
|
||||
|
|
Loading…
Reference in a new issue