diff --git a/GUI/Model/Data/RealItem.cpp b/GUI/Model/Data/RealItem.cpp index 61959a522ddafd88a3f6ccd05beaa94f1a6249ef..5e80bdb6f77c18d4f32ff126e64a5b2a405ee012 100644 --- a/GUI/Model/Data/RealItem.cpp +++ b/GUI/Model/Data/RealItem.cpp @@ -426,7 +426,7 @@ QString RealItem::readFrom(QXmlStreamReader* r, const QString& projectDir, // native data } else if (tag == Tag::NativeData) { m_nativeDataItem.reset(readItemToEnd<DataItem>(r, this, tag)); - nativeDataError == m_nativeDataItem->loadDatafield(messageService, projectDir); + nativeDataError = m_nativeDataItem->loadDatafield(messageService, projectDir); XML::gotoEndElementOfTag(r, tag); // native data units