diff --git a/src/plugins/bazaar/bazaarplugin.cpp b/src/plugins/bazaar/bazaarplugin.cpp index cb5f9fd28fb..3d578557d6c 100644 --- a/src/plugins/bazaar/bazaarplugin.cpp +++ b/src/plugins/bazaar/bazaarplugin.cpp @@ -537,13 +537,13 @@ void BazaarPlugin::createSubmitEditorActions() connect(m_editorCommit, &QAction::triggered, this, &BazaarPlugin::commitFromEditor); m_editorDiff = new QAction(VcsBaseSubmitEditor::diffIcon(), tr("Diff &Selected Files"), this); - command = ActionManager::registerAction(m_editorDiff, DIFFEDITOR, context); + ActionManager::registerAction(m_editorDiff, DIFFEDITOR, context); m_editorUndo = new QAction(tr("&Undo"), this); - command = ActionManager::registerAction(m_editorUndo, Core::Constants::UNDO, context); + ActionManager::registerAction(m_editorUndo, Core::Constants::UNDO, context); m_editorRedo = new QAction(tr("&Redo"), this); - command = ActionManager::registerAction(m_editorRedo, Core::Constants::REDO, context); + ActionManager::registerAction(m_editorRedo, Core::Constants::REDO, context); } void BazaarPlugin::commit() diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index f49ef9b6a9d..3f5d39a2a45 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -642,13 +642,13 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage) connect(m_submitCurrentAction, SIGNAL(triggered()), this, SLOT(submitCurrentLog())); m_diffSelectedFilesAction = new QAction(VcsBaseSubmitEditor::diffIcon(), tr("Diff &Selected Files"), this); - command = ActionManager::registerAction(m_diffSelectedFilesAction, Constants::DIFF_SELECTED, submitContext); + ActionManager::registerAction(m_diffSelectedFilesAction, Constants::DIFF_SELECTED, submitContext); m_undoAction = new QAction(tr("&Undo"), this); - command = ActionManager::registerAction(m_undoAction, Core::Constants::UNDO, submitContext); + ActionManager::registerAction(m_undoAction, Core::Constants::UNDO, submitContext); m_redoAction = new QAction(tr("&Redo"), this); - command = ActionManager::registerAction(m_redoAction, Core::Constants::REDO, submitContext); + ActionManager::registerAction(m_redoAction, Core::Constants::REDO, submitContext); connect(VcsManager::instance(), SIGNAL(repositoryChanged(QString)), this, SLOT(updateContinueAndAbortCommands())); diff --git a/src/plugins/mercurial/mercurialplugin.cpp b/src/plugins/mercurial/mercurialplugin.cpp index b557cc68c88..a7dcb65b26e 100644 --- a/src/plugins/mercurial/mercurialplugin.cpp +++ b/src/plugins/mercurial/mercurialplugin.cpp @@ -522,13 +522,13 @@ void MercurialPlugin::createSubmitEditorActions() connect(editorCommit, SIGNAL(triggered()), this, SLOT(commitFromEditor())); editorDiff = new QAction(VcsBaseSubmitEditor::diffIcon(), tr("Diff &Selected Files"), this); - command = Core::ActionManager::registerAction(editorDiff, Core::Id(Constants::DIFFEDITOR), context); + Core::ActionManager::registerAction(editorDiff, Core::Id(Constants::DIFFEDITOR), context); editorUndo = new QAction(tr("&Undo"), this); - command = Core::ActionManager::registerAction(editorUndo, Core::Id(Core::Constants::UNDO), context); + Core::ActionManager::registerAction(editorUndo, Core::Id(Core::Constants::UNDO), context); editorRedo = new QAction(tr("&Redo"), this); - command = Core::ActionManager::registerAction(editorRedo, Core::Id(Core::Constants::REDO), context); + Core::ActionManager::registerAction(editorRedo, Core::Id(Core::Constants::REDO), context); } void MercurialPlugin::commit() diff --git a/src/plugins/perforce/perforceplugin.cpp b/src/plugins/perforce/perforceplugin.cpp index 912d149dc42..eb594dbfe9f 100644 --- a/src/plugins/perforce/perforceplugin.cpp +++ b/src/plugins/perforce/perforceplugin.cpp @@ -428,13 +428,13 @@ bool PerforcePlugin::initialize(const QStringList & /* arguments */, QString *er connect(m_submitCurrentLogAction, SIGNAL(triggered()), this, SLOT(submitCurrentLog())); m_diffSelectedFiles = new QAction(VcsBaseSubmitEditor::diffIcon(), tr("Diff &Selected Files"), this); - command = ActionManager::registerAction(m_diffSelectedFiles, DIFF_SELECTED, perforcesubmitcontext); + ActionManager::registerAction(m_diffSelectedFiles, DIFF_SELECTED, perforcesubmitcontext); m_undoAction = new QAction(tr("&Undo"), this); - command = ActionManager::registerAction(m_undoAction, Core::Constants::UNDO, perforcesubmitcontext); + ActionManager::registerAction(m_undoAction, Core::Constants::UNDO, perforcesubmitcontext); m_redoAction = new QAction(tr("&Redo"), this); - command = ActionManager::registerAction(m_redoAction, Core::Constants::REDO, perforcesubmitcontext); + ActionManager::registerAction(m_redoAction, Core::Constants::REDO, perforcesubmitcontext); return true; } diff --git a/src/plugins/subversion/subversionplugin.cpp b/src/plugins/subversion/subversionplugin.cpp index d8d9cb60670..d34593ce50a 100644 --- a/src/plugins/subversion/subversionplugin.cpp +++ b/src/plugins/subversion/subversionplugin.cpp @@ -440,13 +440,13 @@ bool SubversionPlugin::initialize(const QStringList & /*arguments */, QString *e connect(m_submitCurrentLogAction, SIGNAL(triggered()), this, SLOT(submitCurrentLog())); m_submitDiffAction = new QAction(VcsBaseSubmitEditor::diffIcon(), tr("Diff &Selected Files"), this); - command = ActionManager::registerAction(m_submitDiffAction , DIFF_SELECTED, svncommitcontext); + ActionManager::registerAction(m_submitDiffAction , DIFF_SELECTED, svncommitcontext); m_submitUndoAction = new QAction(tr("&Undo"), this); - command = ActionManager::registerAction(m_submitUndoAction, Core::Constants::UNDO, svncommitcontext); + ActionManager::registerAction(m_submitUndoAction, Core::Constants::UNDO, svncommitcontext); m_submitRedoAction = new QAction(tr("&Redo"), this); - command = ActionManager::registerAction(m_submitRedoAction, Core::Constants::REDO, svncommitcontext); + ActionManager::registerAction(m_submitRedoAction, Core::Constants::REDO, svncommitcontext); return true; }