Fix crash when changing result name when exporting multiple snapshots

This commit is contained in:
Bjørnar Grip Fjær 2017-03-31 17:14:20 +02:00
parent 4900f50160
commit 9f336ab16f

View File

@ -422,6 +422,10 @@ void PdmUiListEditor::pasteFromString(const QString& content)
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
bool PdmUiListEditor::eventFilter(QObject* object, QEvent * event) bool PdmUiListEditor::eventFilter(QObject* object, QEvent * event)
{ {
if (!m_listView)
{
return false;
}
if (object == m_listView->viewport() && event->type() == QEvent::MouseMove) if (object == m_listView->viewport() && event->type() == QEvent::MouseMove)
{ {
QMouseEvent* mouseEvent = dynamic_cast<QMouseEvent*>(event); QMouseEvent* mouseEvent = dynamic_cast<QMouseEvent*>(event);