diff --git a/src/plugins/git/giteditor.cpp b/src/plugins/git/giteditor.cpp index 165b1e7998a..abd3bef64e7 100644 --- a/src/plugins/git/giteditor.cpp +++ b/src/plugins/git/giteditor.cpp @@ -284,8 +284,10 @@ bool GitEditor::isValidRevision(const QString &revision) const void GitEditor::addChangeActions(QMenu *menu, const QString &change) { m_currentChange = change; - menu->addAction(tr("Cherry-Pick Change %1").arg(change), this, SLOT(cherryPickChange())); - menu->addAction(tr("Revert Change %1").arg(change), this, SLOT(revertChange())); + if (contentType() != VcsBase::OtherContent) { + menu->addAction(tr("Cherry-Pick Change %1").arg(change), this, SLOT(cherryPickChange())); + menu->addAction(tr("Revert Change %1").arg(change), this, SLOT(revertChange())); + } } QString GitEditor::revisionSubject(const QTextBlock &inBlock) const