From 36cdcf270d9247b1ba78a3e2b3d9ff44d0ab4e2f Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Fri, 16 Nov 2018 07:19:09 +0100 Subject: [PATCH] make App::Property aware of whether the order on the list is relevant or not --- src/App/Property.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/App/Property.h b/src/App/Property.h index 68cc9aaebc..fd42bbda1a 100644 --- a/src/App/Property.h +++ b/src/App/Property.h @@ -204,8 +204,15 @@ class AppExport PropertyLists : public Property TYPESYSTEM_HEADER(); public: + PropertyLists() : isOrderRelevant(false){}; + virtual void setSize(int newSize)=0; virtual int getSize(void) const =0; + + // if the order of the elements in the list relevant? + // if yes, certain operations, like restoring must make sure that the + // order is kept despite errors. + bool isOrderRelevant; }; /** A template class that is used to inhibit multiple nested calls to aboutToSetValue/hasSetValue for properties.