From dab5a05116c238c51878abc3c3248f9e55aa23fd Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 4 Sep 2014 19:35:44 +0200 Subject: [PATCH] Add isDirty check to PartitionCoreModule --- src/modules/partition/core/PartitionCoreModule.cpp | 7 +++++++ src/modules/partition/core/PartitionCoreModule.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/modules/partition/core/PartitionCoreModule.cpp b/src/modules/partition/core/PartitionCoreModule.cpp index a681660cc..76c2373aa 100644 --- a/src/modules/partition/core/PartitionCoreModule.cpp +++ b/src/modules/partition/core/PartitionCoreModule.cpp @@ -383,6 +383,13 @@ PartitionCoreModule::revert() updateIsDirty(); } + +bool +PartitionCoreModule::isDirty() +{ + return m_isDirty; +} + QList< PartitionCoreModule::SummaryInfo > PartitionCoreModule::createSummaryInfo() const { diff --git a/src/modules/partition/core/PartitionCoreModule.h b/src/modules/partition/core/PartitionCoreModule.h index 0c0ccf60c..0ebc7b0ed 100644 --- a/src/modules/partition/core/PartitionCoreModule.h +++ b/src/modules/partition/core/PartitionCoreModule.h @@ -86,6 +86,8 @@ public: void revert(); + bool isDirty(); + /** * To be called when a partition has been altered, but only for changes * which do not affect its size, because changes which affect the partition size