forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
b7d2268ff3
commit
635a355f97
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user