Advertisement
Guest User

tabbar.diff

a guest
Jul 30th, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/src/tabwindow/tabbar.cpp b/src/tabwindow/tabbar.cpp
  2. index eb062bf..7403fed 100644
  3. --- a/src/tabwindow/tabbar.cpp
  4. +++ b/src/tabwindow/tabbar.cpp
  5. @@ -463,7 +463,18 @@ void TabBar::mouseReleaseEvent(QMouseEvent *event)
  6.              w->setCurrentIndex(pinnedTabs - 1);
  7.          }
  8.      }
  9. +
  10. +    if (isMovable() && event->button() == Qt::MidButton)
  11. +    {
  12. +        // Workaround for mouseMiddleClick() not being emitted (and tabs not being closed).
  13. +        setMovable(false);
  14.          KTabBar::mouseReleaseEvent(event);
  15. +        setMovable(true);
  16. +    }
  17. +    else
  18. +    {
  19. +        KTabBar::mouseReleaseEvent(event);
  20. +    }
  21.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement