From de289800b22c654e8e3d8fbaea7bdb496a021b88 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 29 Nov 2022 10:22:19 +0000 Subject: 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. --- src/panels/places/placespanel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/panels/places/placespanel.h') 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 m_customContextMenuActions; - Solid::StorageAccess *m_deviceToTearDown = nullptr; + QPersistentModelIndex m_indexToTearDown; QAction *m_configureTrashAction; QAction *m_lockPanelsAction; -- cgit v1.3.1