From 7dff8ec8da795298c1d79e0fdd06f41f725a13aa Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 13 Jun 2012 23:14:21 +0200 Subject: Fix ambiguous tab shortcuts See comment #2 about the fix (Thanks, Weng!) BUG: 275858 --- src/tabbar.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 2d384122..39dd7f74 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -51,6 +51,7 @@ #include #include #include +#include // Qt Includes #include @@ -88,6 +89,9 @@ TabBar::TabBar(QWidget *parent) setContextMenuPolicy(Qt::CustomContextMenu); + // avoid ambiguos shortcuts. See BUG:275858 + KAcceleratorManager::setNoAccel(this); + connect(this, SIGNAL(contextMenu(int, QPoint)), this, SLOT(contextMenu(int, QPoint))); connect(this, SIGNAL(emptyAreaContextMenu(QPoint)), this, SLOT(emptyAreaContextMenu(QPoint))); -- cgit v1.2.1