Including CreateVolumeGroupOperation::targets(const Partition&) implementation.
This commit is contained in:
parent
c791e4546c
commit
34cfc63da4
|
@ -45,8 +45,12 @@ QString CreateVolumeGroupOperation::description() const
|
||||||
return xi18nc("@info/plain", "Create a new LVM volume group.");
|
return xi18nc("@info/plain", "Create a new LVM volume group.");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CreateVolumeGroupOperation::targets(const Partition&) const
|
bool CreateVolumeGroupOperation::targets(const Partition& partition) const
|
||||||
{
|
{
|
||||||
|
for (const auto &p : m_PVList) {
|
||||||
|
if (partition == *p)
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue