From: vsv Date: Thu, 28 Apr 2016 16:15:09 +0000 (+0300) Subject: Issue #1474: Fix the error X-Git-Tag: V_2.3.0~70 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d753b4c529b94fb5be840ea857b45bb6f78bbb0a;p=modules%2Fshaper.git Issue #1474: Fix the error --- diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index ebf1db998..3fa9d63a5 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -599,6 +599,8 @@ QModelIndex XGUI_DataModel::index(int theRow, int theColumn, const QModelIndex & static QModelIndex MYLastDeleted; QModelIndex XGUI_DataModel::parent(const QModelIndex& theIndex) const { + if (!theIndex.isValid()) + return QModelIndex(); // To avoid additional request about index which was already deleted if (theIndex == MYLastDeleted) return QModelIndex();