diff changesetitem.cpp @ 118:9734fb0d6fff

* Rudimentary version of the popup showing more information when you click on a changeset in history graph
author Chris Cannam
date Fri, 26 Nov 2010 23:49:48 +0000
parents d5db15bf250c
children 005a54380502
line wrap: on
line diff
--- a/changesetitem.cpp	Fri Nov 26 22:46:29 2010 +0000
+++ b/changesetitem.cpp	Fri Nov 26 23:49:48 2010 +0000
@@ -48,7 +48,11 @@
 {
     DEBUG << "ChangesetItem::mousePressEvent" << endl;
     //!!! how best to handle this?
-    if (m_detail) return;
+    if (m_detail) {
+        delete m_detail;
+        m_detail = 0;
+        return;
+    }
     m_detail = new ChangesetDetailItem(m_changeset);
     m_detail->setZValue(zValue() + 1);
     scene()->addItem(m_detail);