Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/tabwindow/tabbar.cpp b/src/tabwindow/tabbar.cpp
- index eb062bf..7403fed 100644
- --- a/src/tabwindow/tabbar.cpp
- +++ b/src/tabwindow/tabbar.cpp
- @@ -463,7 +463,18 @@ void TabBar::mouseReleaseEvent(QMouseEvent *event)
- w->setCurrentIndex(pinnedTabs - 1);
- }
- }
- +
- + if (isMovable() && event->button() == Qt::MidButton)
- + {
- + // Workaround for mouseMiddleClick() not being emitted (and tabs not being closed).
- + setMovable(false);
- KTabBar::mouseReleaseEvent(event);
- + setMovable(true);
- + }
- + else
- + {
- + KTabBar::mouseReleaseEvent(event);
- + }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement