X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/465e06138e8baaefb967d32a2eaccf67daef8285..e018ecafca79a73f1e9d76c577b9529fc3a7ae03:/src/userfeedback/placesdatasource.cpp diff --git a/src/userfeedback/placesdatasource.cpp b/src/userfeedback/placesdatasource.cpp index 6db89636d..cdbd5d757 100644 --- a/src/userfeedback/placesdatasource.cpp +++ b/src/userfeedback/placesdatasource.cpp @@ -17,7 +17,8 @@ PlacesDataSource::PlacesDataSource() : KUserFeedback::AbstractDataSource(QStringLiteral("places"), KUserFeedback::Provider::DetailedSystemInformation) -{} +{ +} QString PlacesDataSource::name() const { @@ -45,7 +46,7 @@ QVariant PlacesDataSource::data() auto storageAccess = device.as(); if (storageAccess) { auto mountPoint = KMountPoint::currentMountPoints().findByPath(storageAccess->filePath()); - if (!mountPoint->mountedFrom().startsWith(QLatin1String("kdeconnect@"))) { + if (mountPoint && !mountPoint->mountedFrom().startsWith(QLatin1String("kdeconnect@"))) { hasSSHFS = true; continue; }