diff options
| author | Nikolai Krasheninnikov <[email protected]> | 2020-02-18 13:17:53 -0700 |
|---|---|---|
| committer | Nate Graham <[email protected]> | 2020-02-18 14:55:24 -0700 |
| commit | d0cbcf9718bb5192738ea9f5a5a3d6c4f9f7dcef (patch) | |
| tree | f1ccba61cb092d2d61259c0a9fe7abd45db490aa /src/views/versioncontrol/versioncontrolobserver.h | |
| parent | e545efee73a869aef4276baef0535169f03933de (diff) | |
Fixes multiple KVersionControlPlugin::fileName() calls on entering or updating directory.
Summary:
BUG: 415698
FIXED-IN: 20.04
On each VCS plugin creation corresponding file name is saved (cached) so when we search which VCS plugin is appropriate for current directory we don't need to call KVersionControlPlugin::fileName() again.
Reviewers: #dolphin, meven, elvisangelaccio, ngraham
Reviewed By: #dolphin, meven, ngraham
Subscribers: kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D26962
Diffstat (limited to 'src/views/versioncontrol/versioncontrolobserver.h')
| -rw-r--r-- | src/views/versioncontrol/versioncontrolobserver.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/views/versioncontrol/versioncontrolobserver.h b/src/views/versioncontrol/versioncontrolobserver.h index 7b269abec..66f992963 100644 --- a/src/views/versioncontrol/versioncontrolobserver.h +++ b/src/views/versioncontrol/versioncontrolobserver.h @@ -114,6 +114,7 @@ private slots: private: typedef QPair<KFileItem, KVersionControlPlugin::ItemVersion> ItemState; + typedef QPair<KVersionControlPlugin*, QString> VCSPlugin; void updateItemStates(); @@ -157,7 +158,7 @@ private: bool m_pluginsInitialized; KVersionControlPlugin* m_plugin; - QList<KVersionControlPlugin*> m_plugins; + QList<VCSPlugin> m_plugins; UpdateItemStatesThread* m_updateItemStatesThread; friend class UpdateItemStatesThread; |
