From: vsv Date: Wed, 27 May 2015 15:43:13 +0000 (+0300) Subject: Correct checking pointers for Linux X-Git-Tag: V_1.2.0~46 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=df43bc78a87b9c98c6521cbe6c3cb2242efe9d51;p=modules%2Fshaper.git Correct checking pointers for Linux --- diff --git a/src/PartSet/PartSet_DocumentDataModel.cpp b/src/PartSet/PartSet_DocumentDataModel.cpp index 8d2eea905..26668d6e7 100644 --- a/src/PartSet/PartSet_DocumentDataModel.cpp +++ b/src/PartSet/PartSet_DocumentDataModel.cpp @@ -642,7 +642,7 @@ Qt::ItemFlags PartSet_DocumentDataModel::flags(const QModelIndex& theIndex) cons { if ((theIndex.internalId() >= PartsFolder) && (theIndex.internalId() <= PartResult)) { Qt::ItemFlags aFlags = Qt::ItemIsSelectable; - if (object(theIndex)) { + if (object(theIndex).get()) { aFlags |= Qt::ItemIsEditable; } // Disable items which are below of last history row @@ -658,7 +658,7 @@ Qt::ItemFlags PartSet_DocumentDataModel::flags(const QModelIndex& theIndex) cons const QAbstractItemModel* aModel = aIndex->model(); Qt::ItemFlags aFlags = aModel->flags(*aIndex); if (aModel == myModel) { - if (myModel->object(*aIndex)) + if (myModel->object(*aIndex).get()) aFlags |= Qt::ItemIsEditable; } return aFlags;