]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/userfeedback/placesdatasource.cpp
Fix for KUserFeedbackQt6 includes
[dolphin.git] / src / userfeedback / placesdatasource.cpp
index 6db89636d0862e208c1399d8b0dc0396b12a8a93..554194af75578996578da8d7f6fe817d450c87d9 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <KLocalizedString>
 #include <KMountPoint>
-#include <KUserFeedback/Provider>
+#include <KUserFeedbackQt6/Provider>
 #include <Solid/Device>
 #include <Solid/NetworkShare>
 #include <Solid/StorageAccess>
@@ -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;
                 }