forked from qt-creator/qt-creator
Git: Update current branch after some operations
... to refresh the branch view upstream status. No need for a full model update here, only the current branch is influenced. Change-Id: I6bd17a841988b36221e5015a5858071d33a7b5e5 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
d29650b3ea
commit
da6972e0a9
@@ -759,6 +759,13 @@ Utils::optional<QString> BranchModel::remoteName(const QModelIndex &idx) const
|
||||
return Utils::nullopt;
|
||||
}
|
||||
|
||||
void BranchModel::refreshCurrentBranch()
|
||||
{
|
||||
const QModelIndex currentIndex = currentBranch();
|
||||
BranchNode *node = indexToNode(currentIndex);
|
||||
updateUpstreamStatus(node);
|
||||
}
|
||||
|
||||
void BranchModel::Private::parseOutputLine(const QString &line, bool force)
|
||||
{
|
||||
if (line.size() < 3)
|
||||
|
||||
Reference in New Issue
Block a user