Made left-clicking splitheader focus split (#2720)

This commit is contained in:
Paweł 2021-05-01 16:14:05 +02:00 committed by GitHub
parent 77fa1322de
commit 6c9fd4f204
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -8,6 +8,7 @@
- Minor: Optionally remove spaces between emotes, originally made for Mm2PL/Dankerino. (#2651) - Minor: Optionally remove spaces between emotes, originally made for Mm2PL/Dankerino. (#2651)
- Bugfix: Added missing Copy/Open link context menu entries to emotes in Emote Picker. (#2670) - Bugfix: Added missing Copy/Open link context menu entries to emotes in Emote Picker. (#2670)
- Bugfix: Fixed visual glitch with smooth scrolling. (#2084) - Bugfix: Fixed visual glitch with smooth scrolling. (#2084)
- Bugfix: Clicking on split header focuses its split. (#2720)
## 2.3.0 ## 2.3.0

View file

@ -805,6 +805,8 @@ void SplitHeader::mousePressEvent(QMouseEvent *event)
switch (event->button()) switch (event->button())
{ {
case Qt::LeftButton: { case Qt::LeftButton: {
this->split_->giveFocus(Qt::MouseFocusReason);
this->dragging_ = true; this->dragging_ = true;
this->dragStart_ = event->pos(); this->dragStart_ = event->pos();