forked from qt-creator/qt-creator
Git: Gerritpushdialog: Fix draft push for older Gerrits
Logic for "Non-Draft" and "Draft" was swapped. Change-Id: I14640e1a6321332c6f0cc0b3e8364194f52bcbaf Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -271,7 +271,7 @@ QString GerritPushDialog::pushTarget() const
|
||||
else if (wipState == Qt::Unchecked)
|
||||
options << "ready";
|
||||
} else {
|
||||
target += QLatin1String(m_ui->draftCheckBox->isChecked() ? "for" : "drafts");
|
||||
target += QLatin1String(m_ui->draftCheckBox->isChecked() ? "drafts" : "for");
|
||||
}
|
||||
target += '/' + selectedRemoteBranchName();
|
||||
const QString topic = selectedTopic();
|
||||
|
Reference in New Issue
Block a user