diff --git a/src/jobs/deactivatevolumegroupjob.cpp b/src/jobs/deactivatevolumegroupjob.cpp index 528adac..7fbd3e1 100644 --- a/src/jobs/deactivatevolumegroupjob.cpp +++ b/src/jobs/deactivatevolumegroupjob.cpp @@ -49,9 +49,15 @@ bool DeactivateVolumeGroupJob::run(Report& parent) partition->setMounted(false); } } - else if (device().type() == Device::Type::SoftwareRAID_Device) + else if (device().type() == Device::Type::SoftwareRAID_Device) { rval = SoftwareRAID::stopSoftwareRAID(*report, device().deviceNode()); + if (rval) { + SoftwareRAID *raid = static_cast< SoftwareRAID* >(&device()); + raid->setStatus(SoftwareRAID::Status::Inactive); + } + } + jobFinished(*report, rval); return rval;