Skip to content

Commit

Permalink
[win-linux] fix bug 51040
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplestStudio committed Nov 8, 2023
1 parent 22941cc commit a545786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win-linux/src/components/ctabbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ bool CTabBar::eventFilter(QObject *watched, QEvent *event)
} else
if (mouse_event->button() == Qt::MiddleButton) {
for (int i = 0; i < d->tabList.size(); i++) {
if (d->tabList[i]->close_btn->underMouse()) {
if (d->_tabRect(i).contains(mouse_event->pos())) {
emit tabCloseRequested(i);
return true;
}
Expand Down

0 comments on commit a545786

Please sign in to comment.