diff --git a/src/ops/setfilesystemlabeloperation.cpp b/src/ops/setfilesystemlabeloperation.cpp index 851473a..d46f252 100644 --- a/src/ops/setfilesystemlabeloperation.cpp +++ b/src/ops/setfilesystemlabeloperation.cpp @@ -47,7 +47,7 @@ SetFileSystemLabelOperation::SetFileSystemLabelOperation(Partition& p, const QSt bool SetFileSystemLabelOperation::targets(const Device& d) const { - return labeledPartition().parent() == d.partitionTable(); + return labeledPartition().devicePath() == d.deviceNode(); } bool SetFileSystemLabelOperation::targets(const Partition& p) const @@ -69,6 +69,6 @@ QString SetFileSystemLabelOperation::description() const { if (oldLabel().isEmpty()) return QString(i18nc("@info/plain", "Set label for partition %1 to \"%2\"", labeledPartition().deviceNode(), newLabel())); - + return QString(i18nc("@info/plain", "Set label for partition %1 from \"%2\" to \"%3\"", labeledPartition().deviceNode(), oldLabel(), newLabel())); }