From 5327ca792ab5a464eddfc54dc7f90ab7522aa444 Mon Sep 17 00:00:00 2001 From: Volker Lanz Date: Mon, 24 May 2010 01:05:01 +0000 Subject: [PATCH] compare partition's device path with device's, not partition table pointers svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1129867 --- src/ops/setfilesystemlabeloperation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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())); }