diff --git a/src/plugins/vcsbase/vcsbaseeditorconfig.cpp b/src/plugins/vcsbase/vcsbaseeditorconfig.cpp index 6fd09901bf5..f3f96e3b3fb 100644 --- a/src/plugins/vcsbase/vcsbaseeditorconfig.cpp +++ b/src/plugins/vcsbase/vcsbaseeditorconfig.cpp @@ -305,9 +305,7 @@ void VcsBaseEditorConfig::updateMappedSettings() void VcsBaseEditorConfig::addAction(QAction *action) { - const QList actions = d->m_toolBar->actions(); - // Insert the action before line/column and split actions. - d->m_toolBar->insertAction(actions.at(qMax(actions.count() - 2, 0)), action); + d->m_toolBar->addAction(action); } } // namespace VcsBase