┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.h
diff options
context:
space:
mode:
authorAlexander Lohnau <[email protected]>2021-04-18 08:37:45 +0200
committerElvis Angelaccio <[email protected]>2021-07-04 20:33:48 +0000
commit30299e00b137fb5abf31e6f82fc8f4753f9a929a (patch)
treec6d28ce3e7da2c8f9da410b65386e52d3232382e /src/dolphinmainwindow.h
parentdd7f3fb783a2164e282d88140f301bf8c0af9e5b (diff)
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.
Diffstat (limited to 'src/dolphinmainwindow.h')
-rw-r--r--src/dolphinmainwindow.h3
1 files changed, 3 insertions, 0 deletions
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 <config-baloo.h>
+#include <KFileItemActions>
#include <kio/fileundomanager.h>
#include <kxmlguiwindow.h>
@@ -671,6 +672,8 @@ private:
KToolBarPopupAction* m_forwardAction;
QMenu m_searchTools;
+ KFileItemActions m_fileItemActions;
+
};
inline DolphinViewContainer* DolphinMainWindow::activeViewContainer() const