Commit 9f8f6c15 authored by Anthony Fieroni's avatar Anthony Fieroni
Browse files

[gitpushdialog] Check GitWrapper::branches index validity

Differential Revision: https://phabricator.kde.org/D18289

Signed-off-by: Anthony Fieroni's avatarAnthony Fieroni <bvbfan@abv.bg>
parent 7c2a889f
......@@ -119,7 +119,9 @@ PushDialog::PushDialog (QWidget* parent ):
m_localBranchComboBox->addItem(branch);
}
}
m_localBranchComboBox->setCurrentText(branches.at(currentBranchIndex));
if (currentBranchIndex >= 0) {
m_localBranchComboBox->setCurrentText(branches.at(currentBranchIndex));
}
remoteSelectionChanged(m_remoteComboBox->currentText());
//Signals
......
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