Fix split focusing being broken in certain circumstances when the "Show input when it's empty" setting was disabled (#3838)
Co-authored-by: Kasia <zneix@zneix.eu>
This commit is contained in:
@@ -805,7 +805,7 @@ void SplitHeader::mousePressEvent(QMouseEvent *event)
|
||||
switch (event->button())
|
||||
{
|
||||
case Qt::LeftButton: {
|
||||
this->split_->giveFocus(Qt::MouseFocusReason);
|
||||
this->split_->setFocus(Qt::MouseFocusReason);
|
||||
|
||||
this->dragging_ = true;
|
||||
|
||||
@@ -814,7 +814,7 @@ void SplitHeader::mousePressEvent(QMouseEvent *event)
|
||||
break;
|
||||
|
||||
case Qt::RightButton: {
|
||||
auto menu = this->createMainMenu().release();
|
||||
auto *menu = this->createMainMenu().release();
|
||||
menu->setAttribute(Qt::WA_DeleteOnClose);
|
||||
menu->popup(this->mapToGlobal(event->pos() + QPoint(0, 4)));
|
||||
}
|
||||
@@ -824,6 +824,10 @@ void SplitHeader::mousePressEvent(QMouseEvent *event)
|
||||
this->split_->openInBrowser();
|
||||
}
|
||||
break;
|
||||
|
||||
default: {
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
this->doubleClicked_ = false;
|
||||
|
||||
Reference in New Issue
Block a user