]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/userfeedback/placesdatasource.cpp
Port to KF6 rename of KUserFeedback
[dolphin.git] / src / userfeedback / placesdatasource.cpp
index 6db89636d0862e208c1399d8b0dc0396b12a8a93..cdbd5d7570aef0e52d9525f04e2b063e809e6f55 100644 (file)
@@ -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<Solid::StorageAccess>();
             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;
                 }