┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places/placespanel.h
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2022-11-29 10:22:19 +0000
committerFelix Ernst <[email protected]>2022-11-29 10:22:19 +0000
commitde289800b22c654e8e3d8fbaea7bdb496a021b88 (patch)
tree6777e2f0a33813fbd0c61dbd5535b43a747b5c0b /src/panels/places/placespanel.h
parentf5bb76018651661edd7827a0ec60b713bd136123 (diff)
Places Panel: Delegate open file error to KIO
This functionality is now provided by `KFilePlacesModel` as long as you tell it to do the teardown rather than calling into the device yourself.
Diffstat (limited to 'src/panels/places/placespanel.h')
-rw-r--r--src/panels/places/placespanel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panels/places/placespanel.h b/src/panels/places/placespanel.h
index 6c37301ad..ef213ab30 100644
--- a/src/panels/places/placespanel.h
+++ b/src/panels/places/placespanel.h
@@ -62,7 +62,7 @@ private Q_SLOTS:
void slotContextMenuAboutToShow(const QModelIndex &index, QMenu *menu);
void slotTearDownRequested(const QModelIndex &index);
void slotTearDownRequestedExternally(const QString &udi);
- void slotTearDownDone(Solid::ErrorType error, const QVariant& errorData);
+ void slotTearDownDone(const QModelIndex &index, Solid::ErrorType error, const QVariant &errorData);
void slotRowsInserted(const QModelIndex &parent, int first, int last);
void slotRowsAboutToBeRemoved(const QModelIndex &parent, int first, int last);
@@ -72,7 +72,7 @@ private:
QUrl m_url; // only used for initial setUrl
QList<QAction*> m_customContextMenuActions;
- Solid::StorageAccess *m_deviceToTearDown = nullptr;
+ QPersistentModelIndex m_indexToTearDown;
QAction *m_configureTrashAction;
QAction *m_lockPanelsAction;