Changeset View
Changeset View
Standalone View
Standalone View
git/pulldialog.cpp
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | 36 | { | |||
---|---|---|---|---|---|
83 | foreach (const QString& branch, branches) { | 83 | foreach (const QString& branch, branches) { | ||
84 | if (branch.startsWith(QLatin1String("remotes/"))) { | 84 | if (branch.startsWith(QLatin1String("remotes/"))) { | ||
85 | const QString remote = branch.section('/', 1, 1); | 85 | const QString remote = branch.section('/', 1, 1); | ||
86 | const QString name = branch.section('/', 2); | 86 | const QString name = branch.section('/', 2); | ||
87 | m_remoteBranches[remote] << name; | 87 | m_remoteBranches[remote] << name; | ||
88 | } | 88 | } | ||
89 | } | 89 | } | ||
90 | remoteSelectionChanged(m_remoteComboBox->currentText()); | 90 | remoteSelectionChanged(m_remoteComboBox->currentText()); | ||
91 | if (currentBranchIndex >= 0) { | ||||
92 | const int index = m_remoteBranchComboBox->findText(branches.at(currentBranchIndex)); | ||||
93 | if (index != -1) { | ||||
94 | m_remoteBranchComboBox->setCurrentIndex(index); | ||||
95 | } | ||||
96 | } | ||||
91 | 97 | | |||
92 | //Signals | 98 | //Signals | ||
93 | connect(m_remoteComboBox, SIGNAL(currentIndexChanged(QString)), | 99 | connect(m_remoteComboBox, SIGNAL(currentIndexChanged(QString)), | ||
94 | this, SLOT(remoteSelectionChanged(QString))); | 100 | this, SLOT(remoteSelectionChanged(QString))); | ||
95 | } | 101 | } | ||
96 | 102 | | |||
97 | QString PullDialog::source() const | 103 | QString PullDialog::source() const | ||
98 | { | 104 | { | ||
Show All 16 Lines |