changeset 409:69fb864a3972

Fix same-branch check for uncommitted item on default branch
author Chris Cannam
date Mon, 06 Jun 2011 21:33:25 +0100
parents 005633eed862
children 4f5414a7edb4
files src/grapher.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/grapher.cpp	Mon Jun 06 21:20:11 2011 +0100
+++ b/src/grapher.cpp	Mon Jun 06 21:33:25 2011 +0100
@@ -454,7 +454,7 @@
             conn->setZValue(-1);
             m_scene->addItem(conn);
             if (pitem) {
-                if (pitem->getChangeset()->branch() == uncommittedBranch) {
+                if (pitem->getChangeset()->isOnBranch(uncommittedBranch)) {
                     haveParentOnBranch = true;
                 }
             }