|
|
|
@ -48,7 +48,9 @@
|
|
|
|
|
|
|
|
|
|
#include <kpmcore/core/device.h>
|
|
|
|
|
#include <kpmcore/core/partition.h>
|
|
|
|
|
#ifdef WITH_KPMCOREGT33
|
|
|
|
|
#include <kpmcore/core/softwareraid.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include <QBoxLayout>
|
|
|
|
|
#include <QButtonGroup>
|
|
|
|
@ -1185,9 +1187,11 @@ ChoicePage::setupActions()
|
|
|
|
|
bool atLeastOneIsMounted = false; // Suppress 'erase' if so
|
|
|
|
|
bool isInactiveRAID = false;
|
|
|
|
|
|
|
|
|
|
#ifdef WITH_KPMCOREGT33
|
|
|
|
|
if ( currentDevice->type() == Device::Type::SoftwareRAID_Device &&
|
|
|
|
|
static_cast< SoftwareRAID* >(currentDevice)->status() == SoftwareRAID::Status::Inactive )
|
|
|
|
|
isInactiveRAID = true;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
for ( auto it = PartitionIterator::begin( currentDevice );
|
|
|
|
|
it != PartitionIterator::end( currentDevice ); ++it )
|
|
|
|
|