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:
Frédéric Mercille
2009-07-07 20:12:01 -04:00
parent 6bb6f5168d
commit 718cc94a89

View File

@@ -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);
}