From 9f336ab16f7451f608d53ab4bdd0e73419f46260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rnar=20Grip=20Fj=C3=A6r?= Date: Fri, 31 Mar 2017 17:14:20 +0200 Subject: [PATCH] Fix crash when changing result name when exporting multiple snapshots --- Fwk/AppFwk/cafUserInterface/cafPdmUiListEditor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Fwk/AppFwk/cafUserInterface/cafPdmUiListEditor.cpp b/Fwk/AppFwk/cafUserInterface/cafPdmUiListEditor.cpp index 75865cac22..b9869b89d0 100644 --- a/Fwk/AppFwk/cafUserInterface/cafPdmUiListEditor.cpp +++ b/Fwk/AppFwk/cafUserInterface/cafPdmUiListEditor.cpp @@ -422,6 +422,10 @@ void PdmUiListEditor::pasteFromString(const QString& content) //-------------------------------------------------------------------------------------------------- bool PdmUiListEditor::eventFilter(QObject* object, QEvent * event) { + if (!m_listView) + { + return false; + } if (object == m_listView->viewport() && event->type() == QEvent::MouseMove) { QMouseEvent* mouseEvent = dynamic_cast(event);