Remove LVM LV formatted as LVM PV partition from the PV list when resizing LVM VG if it belongs to the same VG.

This commit is contained in:
Andrius Štikonas 2016-12-06 02:51:54 +00:00
parent 5eb91085c5
commit 6e6f41b209
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ void ResizeVolumeGroupDialog::setupDialog()
continue;
if (p.vgName() == device()->name())
dialogWidget().listPV().addPartition(*p.partition(), true);
else if (p.vgName() == QString() && !LvmDevice::s_DirtyPVs.contains(p.partition())) // TODO: Remove LVM PVs in current VG
else if (p.vgName() == QString() && !LvmDevice::s_DirtyPVs.contains(p.partition()) && targetName() != device()->name())
dialogWidget().listPV().addPartition(*p.partition(), false);
}
}