diff options
| author | Kai Uwe Broulik <[email protected]> | 2018-03-19 09:57:24 +0100 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2018-03-19 09:57:24 +0100 |
| commit | 7cee23157f099837fffc22380b85ac33a2006a49 (patch) | |
| tree | 7db6d1f55e74f9d518b94a1147f1cd8699a72ea9 /src/panels/places/placesitemmodel.h | |
| parent | 6f05c66cc0d2416a21fd8eaff0ec6e7a9161d59c (diff) | |
Introduce singleton for KFilePlacesModel
There are various places where Dolphin created a new KFilePlacesModel which would then query all storage devices and do other expensive work.
Differential Revision: https://phabricator.kde.org/D11283
Diffstat (limited to 'src/panels/places/placesitemmodel.h')
| -rw-r--r-- | src/panels/places/placesitemmodel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panels/places/placesitemmodel.h b/src/panels/places/placesitemmodel.h index 1aa31facd..a2086efc5 100644 --- a/src/panels/places/placesitemmodel.h +++ b/src/panels/places/placesitemmodel.h @@ -228,7 +228,7 @@ private: QHash<QObject*, int> m_storageSetupInProgress; - QScopedPointer<KFilePlacesModel> m_sourceModel; + KFilePlacesModel *m_sourceModel; QVector<QPersistentModelIndex> m_indexMap; }; |
