aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/timelineeditor/timelineview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/components/timelineeditor/timelineview.cpp')
-rw-r--r--src/plugins/qmldesigner/components/timelineeditor/timelineview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/timelineeditor/timelineview.cpp b/src/plugins/qmldesigner/components/timelineeditor/timelineview.cpp
index a8b20f8380..7272735be2 100644
--- a/src/plugins/qmldesigner/components/timelineeditor/timelineview.cpp
+++ b/src/plugins/qmldesigner/components/timelineeditor/timelineview.cpp
@@ -89,7 +89,8 @@ void TimelineView::modelAttached(Model *model)
void TimelineView::modelAboutToBeDetached(Model *model)
{
- m_timelineWidget->reset();
+ if (!m_timelineWidget)
+ m_timelineWidget->reset();
const bool empty = getTimelines().isEmpty();
if (!empty)
setTimelineRecording(false);