From 7710a35ed67353e741ee13548de40d97b7f5e658 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 11 Oct 2018 00:10:15 +0300 Subject: [PATCH] VcsBase: Fix order of toolbar widgets Git Blame has an additional widget, which is added before the refresh button, but it still appeared after it. It looks like insertAction was left there for historical reasons. Replacing it with addAction doesn't affect the widgets positions, and they're still placed before the line/column widget. Change-Id: Id6b658b5c3c8a8bb256e03e13536865f007d41bf Reviewed-by: Eike Ziller --- src/plugins/vcsbase/vcsbaseeditorconfig.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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