Commit 2349a0a5 authored by Alessandro Portale's avatar Alessandro Portale

Git: Gerritpushdialog: Fix draft push for older Gerrits

Logic for "Non-Draft" and "Draft" was swapped.

Change-Id: I14640e1a6321332c6f0cc0b3e8364194f52bcbaf
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 769afa9f
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment