Commit 9b3ab11f authored by Eike Ziller's avatar Eike Ziller

Fix registering shortcut for text editor actions

Broke with f1eb9c48 which exchanged
setDefaultKeySequence with setKeySequence

Task-number: QTCREATORBUG-10538
Change-Id: Id40bd8fd403cd586a39a19c248f59e23cf4cf8c0
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent 1b370a4e
......@@ -384,7 +384,7 @@ QAction *TextEditorActionHandler::registerAction(const Core::Id &id,
QAction *result = new QAction(title, this);
Core::Command *command = Core::ActionManager::registerAction(result, id, m_contextId, scriptable);
if (!keySequence.isEmpty())
command->setKeySequence(keySequence);
command->setDefaultKeySequence(keySequence);
if (container && menueGroup)
container->addAction(command, menueGroup);
......
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