changeset 87:a7904378ac6a

* tiny mod
author Chris Cannam
date Mon, 22 Nov 2010 21:28:00 +0000
parents 89f793fbedda
children c5e34ed5b791
files hgexpwidget.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgexpwidget.cpp	Mon Nov 22 20:17:14 2010 +0000
+++ b/hgexpwidget.cpp	Mon Nov 22 21:28:00 2010 +0000
@@ -282,10 +282,10 @@
     } catch (std::string s) {
 	std::cerr << "Internal error: Layout failed: " << s << std::endl;
     }
-    panned->scene()->deleteLater();
+    QGraphicsScene *oldScene = panned->scene();
     panned->setScene(scene);
-    panner->scene()->deleteLater();
     panner->setScene(scene);
+    if (oldScene) delete oldScene;
     ChangesetItem *tipItem = g.getItemFor(csets[0]);
     if (tipItem) tipItem->ensureVisible();
 }