Show mount point for swap as "none".
This also silences QFileInfo warning from KMountPoint.
This commit is contained in:
parent
ee6e4469ca
commit
559fad9803
|
@ -134,8 +134,6 @@ QString FileSystem::detectMountPoint(FileSystem* fs, const QString& partitionPat
|
||||||
mountPoint = mountPoints.findByDevice(partitionPath) ?
|
mountPoint = mountPoints.findByDevice(partitionPath) ?
|
||||||
mountPoints.findByDevice(partitionPath)->mountPoint() :
|
mountPoints.findByDevice(partitionPath)->mountPoint() :
|
||||||
QString();
|
QString();
|
||||||
if (mountPoint == QStringLiteral("none"))
|
|
||||||
mountPoint = QString();
|
|
||||||
}
|
}
|
||||||
return mountPoint;
|
return mountPoint;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.*
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.*
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
#include "fs/lvm2_pv.h"
|
#include "fs/lvm2_pv.h"
|
||||||
#include "core/device.h"
|
#include "core/device.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue