From fa95c24d7dfc5387bc20961dec00747874cbcd49 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 23 Jun 2014 18:21:12 +0200 Subject: [PATCH] Accept events properly --- qutebrowser/widgets/statusbar/textbase.py | 1 + qutebrowser/widgets/tabwidget.py | 1 + 2 files changed, 2 insertions(+) diff --git a/qutebrowser/widgets/statusbar/textbase.py b/qutebrowser/widgets/statusbar/textbase.py index ea5688c6f..2037b45d9 100644 --- a/qutebrowser/widgets/statusbar/textbase.py +++ b/qutebrowser/widgets/statusbar/textbase.py @@ -87,6 +87,7 @@ class TextBase(QLabel): if self._elidemode == Qt.ElideNone: super().paintEvent(e) else: + e.accept() painter = QPainter(self) geom = self.geometry() qt_ensure_valid(geom) diff --git a/qutebrowser/widgets/tabwidget.py b/qutebrowser/widgets/tabwidget.py index 6738665d2..0316e4aec 100644 --- a/qutebrowser/widgets/tabwidget.py +++ b/qutebrowser/widgets/tabwidget.py @@ -136,6 +136,7 @@ class TabBar(QTabBar): if idx == -1: super().mousePressEvent(e) return + e.accept() self.tabCloseRequested.emit(idx) def tabSizeHint(self, index):