summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-27 15:27:56 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-27 15:27:56 (GMT)
commit63b31e2cd7566ada7dfd5472910d8d7829525734 (patch)
tree4a4ea03b44f21cfa1ab27bbe276543795ce44983
parentc213b906b80e7ed617b7a2c074f0094f069dc901 (diff)
Fix potential crash
-rw-r--r--src/part/radialMap/widget.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/part/radialMap/widget.cpp b/src/part/radialMap/widget.cpp
index d0c7ee2..cc259a1 100644
--- a/src/part/radialMap/widget.cpp
+++ b/src/part/radialMap/widget.cpp
@@ -78,6 +78,9 @@ void RadialMap::Widget::invalidate()
//disable mouse tracking
setMouseTracking(false);
+ // Get this before reseting m_tree below
+ QUrl invalidatedUrl(url());
+
//ensure this class won't think we have a map still
m_tree = 0;
m_focus = 0;
@@ -91,7 +94,7 @@ void RadialMap::Widget::invalidate()
update();
//tell rest of Filelight
- emit invalidated(url());
+ emit invalidated(invalidatedUrl);
}
}