From 559fad9803e80bf56f567b132a6d338f46ad0bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Mon, 3 Oct 2016 00:14:39 +0100 Subject: [PATCH] Show mount point for swap as "none". This also silences QFileInfo warning from KMountPoint. --- src/fs/filesystem.cpp | 2 -- src/fs/lvm2_pv.cpp | 1 - 2 files changed, 3 deletions(-) diff --git a/src/fs/filesystem.cpp b/src/fs/filesystem.cpp index d824b4d..16b0516 100644 --- a/src/fs/filesystem.cpp +++ b/src/fs/filesystem.cpp @@ -134,8 +134,6 @@ QString FileSystem::detectMountPoint(FileSystem* fs, const QString& partitionPat mountPoint = mountPoints.findByDevice(partitionPath) ? mountPoints.findByDevice(partitionPath)->mountPoint() : QString(); - if (mountPoint == QStringLiteral("none")) - mountPoint = QString(); } return mountPoint; } diff --git a/src/fs/lvm2_pv.cpp b/src/fs/lvm2_pv.cpp index 9e19200..a85980e 100644 --- a/src/fs/lvm2_pv.cpp +++ b/src/fs/lvm2_pv.cpp @@ -16,7 +16,6 @@ * along with this program. If not, see .* *************************************************************************/ - #include "fs/lvm2_pv.h" #include "core/device.h"