forked from qt-creator/qt-creator
Setting the default key sequence should only set the current sequence if none is set. Otherwise, it overrides the user configuration in QtCreator.ini.
This commit is contained in:
@@ -384,7 +384,8 @@ QList<CommandLocation> Action::locations() const
|
||||
|
||||
void Action::setDefaultKeySequence(const QKeySequence &key)
|
||||
{
|
||||
setKeySequence(key);
|
||||
if(m_action->shortcut().isEmpty())
|
||||
setKeySequence(key);
|
||||
CommandPrivate::setDefaultKeySequence(key);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user