Git: Fix false positive for tracking branch

Change-Id: Ib08b5b276708a5951ed421e674a10d4763032502
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-06-17 15:36:39 +03:00
committed by Orgad Shaneh
parent 613d3c563a
commit 8ce981e673

View File

@@ -539,7 +539,7 @@ QModelIndex BranchModel::addBranch(const QString &name, bool track, const QModel
if (local->children.at(pos)->name > name) if (local->children.at(pos)->name > name)
break; break;
} }
BranchNode *newNode = new BranchNode(name, sha(startPoint), trackedBranch); BranchNode *newNode = new BranchNode(name, sha(startPoint), track ? trackedBranch : QString());
beginInsertRows(index(0, 0), pos, pos); beginInsertRows(index(0, 0), pos, pos);
newNode->parent = local; newNode->parent = local;
local->children.insert(pos, newNode); local->children.insert(pos, newNode);