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

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 <>
Reviewed-by: default avatarDavid Schulz <>
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())
if (container && menueGroup)
container->addAction(command, menueGroup);
Supports Markdown
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