fix: use correct selection index when double-clicking into the void (#5617)
This commit is contained in:
@@ -2707,6 +2707,10 @@ void ChannelView::mouseDoubleClickEvent(QMouseEvent *event)
|
||||
|
||||
if (hoverLayoutElement == nullptr)
|
||||
{
|
||||
// XXX: this is duplicate work
|
||||
auto idx = layout->getSelectionIndex(relativePos);
|
||||
SelectionItem item(messageIndex, idx);
|
||||
this->doubleClickSelection_ = {item, item};
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user