]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/places/placesitemsignalhandler.cpp
Don't block unmounting when terminal panel's cwd is the mountpoint
[dolphin.git] / src / panels / places / placesitemsignalhandler.cpp
index c9bc0db3f7b29551365a9d221bfa134ce5b5b649..bd3fc9f72742631d23c166b3a85bb71e86f9423f 100644 (file)
@@ -47,3 +47,15 @@ void PlacesItemSignalHandler::onTrashDirListerCompleted()
     }
 }
 
+void PlacesItemSignalHandler::onTearDownRequested(const QString& udi)
+{
+    Q_UNUSED(udi)
+    if (m_item) {
+        Solid::StorageAccess *tmp = m_item->device().as<Solid::StorageAccess>();
+        if (tmp) {
+            QString mountPath = tmp->filePath();
+            emit tearDownExternallyRequested(mountPath);
+        }
+    }
+}
+