Simplify construction of PV list.
This commit is contained in:
parent
426a9385cd
commit
47837843c5
|
@ -83,17 +83,10 @@ ResizeVolumeGroupOperation::ResizeVolumeGroupOperation(LvmDevice& dev, const QSt
|
||||||
|
|
||||||
QString ResizeVolumeGroupOperation::description() const
|
QString ResizeVolumeGroupOperation::description() const
|
||||||
{
|
{
|
||||||
QString tlist = QString();
|
QString tList = targetList().join(QStringLiteral(", "));
|
||||||
for (QString path : targetList()) {
|
QString curList = currentList().join(QStringLiteral(", "));
|
||||||
tlist += path + QStringLiteral(",");
|
|
||||||
}
|
return xi18nc("@info/plain", "Resize volume %1 from %2 to %3", device().name(), curList, tList);
|
||||||
tlist.chop(1);
|
|
||||||
QString clist = QString();
|
|
||||||
for (QString path : currentList()) {
|
|
||||||
clist += path + QStringLiteral(",");
|
|
||||||
}
|
|
||||||
clist.chop(1);
|
|
||||||
return xi18nc("@info/plain", "Resize volume %1 from %2 to %3", device().name(), clist, tlist);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ResizeVolumeGroupOperation::targets(const Device& d) const
|
bool ResizeVolumeGroupOperation::targets(const Device& d) const
|
||||||
|
|
Loading…
Reference in New Issue