From e8fbed212f961aa365c804c0b877f7139656fa69 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 20 Aug 2015 14:44:57 +0300 Subject: [PATCH] Added comment --- src/XGUI/XGUI_DataModel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index bba968407..40e5c8136 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -506,6 +506,7 @@ QModelIndex XGUI_DataModel::parent(const QModelIndex& theIndex) const ObjectPtr aObj = object(theIndex); if (!aObj.get()) { // To avoid additional request about index which was already deleted + // If deleted it causes a crash on delete object from Part MYLastDeleted = theIndex; return QModelIndex(); } -- 2.39.2