summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-02-27 20:23:30 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-02-27 20:23:30 +0100
commitdfe3c9649f649f2dbd7eac60e3847d4e978e24f4 (patch)
tree97fdbf17416317bcce212fef5218ff08bd546279 /tdecore/tdehw
parent8a859540c3cb306844288144a06028dc302408d6 (diff)
downloadtdelibs-dfe3c9649f649f2dbd7eac60e3847d4e978e24f4.tar.gz
tdelibs-dfe3c9649f649f2dbd7eac60e3847d4e978e24f4.zip
tdehwlib: Fix the flag setting whether the storage device contains the file system.
This resolves bug 2232, bug 2607 and bug 2946. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdecore/tdehw')
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index 1d8a4280b..08cb1c80b 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -2760,7 +2760,7 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist
diskstatus = diskstatus | TDEDiskDeviceStatus::Hotpluggable;
}
- if ((filesystemtype.upper() != "CRYPTO_LUKS") && (filesystemtype.upper() != "CRYPTO") && (filesystemtype.upper() != "SWAP") && (!filesystemtype.isNull())) {
+ if ((filesystemtype.upper() != "CRYPTO_LUKS") && (filesystemtype.upper() != "CRYPTO") && (filesystemtype.upper() != "SWAP") && (!filesystemtype.isEmpty())) {
diskstatus = diskstatus | TDEDiskDeviceStatus::ContainsFilesystem;
}
else {