LVM support #6

Closed
andrius wants to merge 109 commits from (deleted):lvm-support-rebase into master
2 changed files with 6 additions and 12 deletions
Showing only changes of commit d37d6659c5 - Show all commits

View File

@ -59,9 +59,5 @@ bool MovePhysicalVolumeJob::run(Report& parent)
QString MovePhysicalVolumeJob::description() const QString MovePhysicalVolumeJob::description() const
{ {
QString tmp = QString(); return xi18nc("@info/plain", "Move used PE in %1 on %2 to other available Physical Volumes", partList().join(QStringLiteral(", ")), device().name());
for (const auto &path : partList()) {
tmp += path + QStringLiteral(",");
}
return xi18nc("@info/plain", "Move used PE in %1 on %2 to other available Physical Volumes", tmp, device().name());
} }

View File

@ -57,15 +57,13 @@ bool ResizeVolumeGroupJob::run(Report& parent)
QString ResizeVolumeGroupJob::description() const QString ResizeVolumeGroupJob::description() const
{ {
QString tmp = QString(); const QString partitionList = partList().join(QStringLiteral(", "));
for (const auto &path : partList()) {
tmp += path + QStringLiteral(",");
}
if (type() == ResizeVolumeGroupJob::Grow) { if (type() == ResizeVolumeGroupJob::Grow) {
return xi18nc("@info/plain", "Inserting Volume: %1 to %2.", tmp, device().name()); return xi18nc("@info/plain", "Inserting Volume: %1 to %2.", partitionList, device().name());
} }
if (type() == ResizeVolumeGroupJob::Shrink) { if (type() == ResizeVolumeGroupJob::Shrink) {
return xi18nc("@info/plain", "Removing Volume: %1 from %2.", tmp, device().name()); return xi18nc("@info/plain", "Removing Volume: %1 from %2.", partitionList, device().name());
} }
return xi18nc("@info/plain", "Resizing Volume: %1 to %2.", device().name(), tmp); return xi18nc("@info/plain", "Resizing Volume: %1 to %2.", device().name(), partitionList);
} }