Skip to content
Snippets Groups Projects
Commit 61367fc6 authored by Nikita Baryshnikov's avatar Nikita Baryshnikov
Browse files

Git: fix crash in branches dialog


When tags are not shown in branches dialog, selecting of any item in
branches list causes crash

Change-Id: I8bfb66202f486c175a14c59f17b43df21ff596ff
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 745f82bf
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,8 @@ public:
BranchNode *rn = rootNode();
if (rn->isLeaf())
return false;
if (root >= rn->children.count())
return false;
return childOf(rn->children.at(root));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment