mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Don't switch tab if only right mouse is pressed on other tab.
This commit is contained in:
parent
f25f31a837
commit
036abd4852
|
@ -357,12 +357,14 @@ bool NotebookTab::shouldDrawXButton()
|
||||||
|
|
||||||
void NotebookTab::mousePressEvent(QMouseEvent *event)
|
void NotebookTab::mousePressEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
this->mouseDown_ = true;
|
if (event->button() == Qt::LeftButton) {
|
||||||
this->mouseDownX_ = this->getXRect().contains(event->pos());
|
this->mouseDown_ = true;
|
||||||
|
this->mouseDownX_ = this->getXRect().contains(event->pos());
|
||||||
|
|
||||||
this->update();
|
this->update();
|
||||||
|
|
||||||
this->notebook_->select(page);
|
this->notebook_->select(page);
|
||||||
|
}
|
||||||
|
|
||||||
if (this->notebook_->getAllowUserTabManagement()) {
|
if (this->notebook_->getAllowUserTabManagement()) {
|
||||||
switch (event->button()) {
|
switch (event->button()) {
|
||||||
|
|
Loading…
Reference in a new issue