Get current PV list from deviceNodeList instead of calling external one.

This commit is contained in:
Chantara Tith 2016-08-08 08:28:39 +07:00 committed by Andrius Štikonas
parent 7f61e77eb5
commit 9e58e13d21
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ void ResizeVolumeDialog::setupDialog()
{
dialogWidget().partTableWidget().setVisible(false);
if (dialogWidget().volumeType().currentText() == QStringLiteral("LVM")) {
dialogWidget().listPV().addPartitionList(LvmDevice::getPVs(targetName()), true);
dialogWidget().listPV().addPartitionList(device().deviceNodeList(), true);
dialogWidget().listPV().addPartitionList(FS::lvm2_pv::getFreePV(), false);
}
}