forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.3'
Conflicts: qtcreator.pri Change-Id: Iaca68084799ae9aec257742c395609d6e8aa72cd
This commit is contained in:
@@ -448,8 +448,11 @@ void BranchModel::checkoutBranch(const QModelIndex &idx)
|
||||
}
|
||||
if (m_client->synchronousCheckoutBranch(m_workingDirectory, branch, &errorMessage)) {
|
||||
if (errorMessage.isEmpty()) {
|
||||
static_cast<BranchNode *>(currentBranch().internalPointer())->current = false;
|
||||
emit dataChanged(currentBranch(), currentBranch());
|
||||
QModelIndex currentIdx = currentBranch();
|
||||
if (currentIdx.isValid()) {
|
||||
static_cast<BranchNode *>(currentIdx.internalPointer())->current = false;
|
||||
emit dataChanged(currentBranch(), currentBranch());
|
||||
}
|
||||
static_cast<BranchNode *>(idx.internalPointer())->current = true;
|
||||
emit dataChanged(idx, idx);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user