Commit 60988722 authored by Anthony Fieroni's avatar Anthony Fieroni

[git] Set combo box to current branch in pull dialog

Differential Revision: https://phabricator.kde.org/D28459Signed-off-by: Anthony Fieroni's avatarAnthony Fieroni <bvbfan@abv.bg>
parent 6ffb2eb8
......@@ -88,6 +88,12 @@ PullDialog::PullDialog(QWidget* parent):
}
}
remoteSelectionChanged(m_remoteComboBox->currentText());
if (currentBranchIndex >= 0) {
const int index = m_remoteBranchComboBox->findText(branches.at(currentBranchIndex));
if (index != -1) {
m_remoteBranchComboBox->setCurrentIndex(index);
}
}
//Signals
connect(m_remoteComboBox, SIGNAL(currentIndexChanged(QString)),
......
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