Git: Suppress "No local commits" error message in Push to Gerrit

Change-Id: Ib0cf79acf48d24848fda92a8b7b06efe62b46dbc
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2014-02-12 10:10:27 +02:00
committed by Orgad Shaneh
parent b7d2268ff3
commit 635a355f97
3 changed files with 8 additions and 5 deletions

View File

@@ -254,7 +254,8 @@ void GerritPushDialog::setRemoteBranches(bool includeOld)
void GerritPushDialog::updateCommits(int index)
{
const QString branch = m_ui->localBranchComboBox->itemText(index);
const bool hasLocalCommits = m_ui->commitView->init(m_workingDir, branch);
const bool hasLocalCommits = m_ui->commitView->init(m_workingDir, branch,
LogChangeWidget::Silent);
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(hasLocalCommits);
setChangeRange();
}