Skip to content
Snippets Groups Projects
Commit ef983452 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Git: Readd shortcuts for commit


Change-Id: I290d2fb265df29c3cce44fae85af2366ac918e99
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 2f936968
No related branches found
No related tags found
No related merge requests found
......@@ -110,9 +110,9 @@ void GitSubmitEditorWidget::initialize(CommitType commitType,
if (data.hasRemotes && commitType != FixupCommit) {
QMenu *menu = new QMenu(this);
menu->addAction(tr("Commit only"), this, SLOT(commitOnlySlot()));
menu->addAction(tr("Commit and Push"), this, SLOT(commitAndPushSlot()));
menu->addAction(tr("Commit and Push to Gerrit"), this, SLOT(commitAndPushToGerritSlot()));
menu->addAction(tr("&Commit only"), this, SLOT(commitOnlySlot()));
menu->addAction(tr("Commit and &Push"), this, SLOT(commitAndPushSlot()));
menu->addAction(tr("Commit and Push to &Gerrit"), this, SLOT(commitAndPushToGerritSlot()));
addSubmitButtonMenu(menu);
}
}
......@@ -172,11 +172,11 @@ QString GitSubmitEditorWidget::cleanupDescription(const QString &input) const
QString GitSubmitEditorWidget::commitName() const
{
if (m_pushAction == NormalPush)
return tr("Commit and Push");
return tr("&Commit and Push");
else if (m_pushAction == PushToGerrit)
return tr("Commit and Push to Gerrit");
return tr("&Commit and Push to Gerrit");
return tr("Commit");
return tr("&Commit");
}
void GitSubmitEditorWidget::authorInformationChanged()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment