Commit ad9fa086 authored by Halla Rempt's avatar Halla Rempt
Browse files

Only add shortcuts for Krita...

parent dc1db203
......@@ -800,12 +800,14 @@ void KoToolManager::registerTools(KActionCollection *ac, KoCanvasController *con
}
// Actions used to switch tools; connect slot to keep button tooltips updated
foreach(ToolHelper * th, d->tools) {
ToolAction* action = new ToolAction(this, th->id(), th->toolTip(), ac);
action->setShortcut(th->shortcut());
ac->addAction(th->id(), action);
th->setAction(action);
connect(action, SIGNAL(changed()), th, SLOT(actionUpdated()));
if (qApp->applicationName().contains("krita")) {
foreach(ToolHelper * th, d->tools) {
ToolAction* action = new ToolAction(this, th->id(), th->toolTip(), ac);
action->setShortcut(th->shortcut());
ac->addAction(th->id(), action);
th->setAction(action);
connect(action, SIGNAL(changed()), th, SLOT(actionUpdated()));
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment