From 49053e86aa61a359a15eda0e67b4fa2c293122e0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 3 Jun 2014 15:28:06 -0700 Subject: Make most of the shortcuts widget specific Having the window specific means that you can't have a key do different things on different widgets. Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qt-ui/profile') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index ccdbe1888..54af27ba3 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -1044,8 +1044,10 @@ void ProfileWidget2::disconnectTemporaryConnections() disconnect(plannerModel, SIGNAL(rowsRemoved(const QModelIndex &, int, int)), this, SLOT(pointsRemoved(const QModelIndex &, int, int))); - Q_FOREACH (QAction *action, actionsForKeys.values()) + Q_FOREACH (QAction *action, actionsForKeys.values()) { action->setShortcut(QKeySequence()); + action->setShortcutContext(Qt::WidgetShortcut); + } } void ProfileWidget2::pointInserted(const QModelIndex &parent, int start, int end) -- cgit v1.2.3-70-g09d2