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:
Alessandro Portale
2017-12-03 19:09:37 +01:00
parent 769afa9f97
commit 2349a0a5c4

View File

@@ -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();