diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-10-02 15:11:07 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-10-05 19:15:11 +0200 |
commit | c07eaa2a252a9e108155c0f14219119e6f80505f (patch) | |
tree | 4188efeb36ebe01b663af9ea11d64a1e7e217833 /src/plugins/git/gitsubmiteditorwidget.cpp | |
parent | 589d9c777355de26b426263190e9bd782ac69590 (diff) |
Git: Move hasRemotes out of panel data
It is input only, and doesn't belong to the panel
Also rename it enablePush
Change-Id: I9d5e2246ce76854a54b02e69980214dd35a402ee
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Diffstat (limited to 'src/plugins/git/gitsubmiteditorwidget.cpp')
-rw-r--r-- | src/plugins/git/gitsubmiteditorwidget.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/git/gitsubmiteditorwidget.cpp b/src/plugins/git/gitsubmiteditorwidget.cpp index dbbc6d8c6f..50cffe06b7 100644 --- a/src/plugins/git/gitsubmiteditorwidget.cpp +++ b/src/plugins/git/gitsubmiteditorwidget.cpp @@ -87,7 +87,8 @@ void GitSubmitEditorWidget::setHasUnmerged(bool e) void GitSubmitEditorWidget::initialize(CommitType commitType, const QString &repository, const GitSubmitEditorPanelData &data, - const GitSubmitEditorPanelInfo &info) + const GitSubmitEditorPanelInfo &info, + bool enablePush) { if (m_isInitialized) return; @@ -108,7 +109,7 @@ void GitSubmitEditorWidget::initialize(CommitType commitType, setPanelData(data); setPanelInfo(info); - if (data.hasRemotes && commitType != FixupCommit) { + if (enablePush && commitType != FixupCommit) { QMenu *menu = new QMenu(this); menu->addAction(tr("&Commit only"), this, SLOT(commitOnlySlot())); menu->addAction(tr("Commit and &Push"), this, SLOT(commitAndPushSlot())); |