From 30299e00b137fb5abf31e6f82fc8f4753f9a929a Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Sun, 18 Apr 2021 08:37:45 +0200 Subject: Reuse KFileItemActions instance during lifetime of dolphin With https://invent.kde.org/frameworks/kio/-/merge_requests/411 the plugin instances can be reused during the lifetime of the KFileItemActions object. This improves performance and also allows the plugins to emit errors, even if they run async. --- src/dolphinmainwindow.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index eb7309fc6..594c75691 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -11,6 +11,7 @@ #include "dolphintabwidget.h" #include +#include #include #include @@ -671,6 +672,8 @@ private: KToolBarPopupAction* m_forwardAction; QMenu m_searchTools; + KFileItemActions m_fileItemActions; + }; inline DolphinViewContainer* DolphinMainWindow::activeViewContainer() const -- cgit v1.3