Changeset View
Changeset View
Standalone View
Standalone View
src/panels/places/placesitemsignalhandler.cpp
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | 42 | | |||
43 | void PlacesItemSignalHandler::onTrashDirListerCompleted() | 43 | void PlacesItemSignalHandler::onTrashDirListerCompleted() | ||
44 | { | 44 | { | ||
45 | if (m_item) { | 45 | if (m_item) { | ||
46 | m_item->onTrashDirListerCompleted(); | 46 | m_item->onTrashDirListerCompleted(); | ||
47 | } | 47 | } | ||
48 | } | 48 | } | ||
49 | 49 | | |||
50 | void PlacesItemSignalHandler::onTearDownRequested(const QString& udi) | ||||
51 | { | ||||
52 | Q_UNUSED(udi) | ||||
53 | if (m_item) { | ||||
54 | Solid::StorageAccess *tmp = m_item->device().as<Solid::StorageAccess>(); | ||||
55 | if (tmp) { | ||||
56 | QString mountPath = tmp->filePath(); | ||||
57 | emit tearDownExternallyRequested(mountPath); | ||||
58 | } | ||||
59 | } | ||||
60 | } | ||||
61 | |