From df43bc78a87b9c98c6521cbe6c3cb2242efe9d51 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 27 May 2015 18:43:13 +0300 Subject: [PATCH] Correct checking pointers for Linux --- src/PartSet/PartSet_DocumentDataModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2