┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorChristoph Cullmann <[email protected]>2024-07-03 18:56:16 +0200
committerChristoph Cullmann <[email protected]>2024-07-04 11:31:29 +0000
commit638a0663a1a79230a870717e37cb48b9cb61062c (patch)
tree1439d1a873b3322fb7b329e55904edea2d6d1a0e /src/dolphinmainwindow.cpp
parent76c07954582032bcf714e543b590deda72b28612 (diff)
avoid need for activities lib
use KRecentFilesAction like Kate and others to signal used files/dirs could later be used to plug-in a recently used menu, too, if ever wanted avoids that this dependency could be missed and the functionality is not there, too
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index bc88d643e..8bc066455 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -53,6 +53,7 @@
#include <KMessageBox>
#include <KProtocolInfo>
#include <KProtocolManager>
+#include <KRecentFilesAction>
#include <KShell>
#include <KShortcutsDialog>
#include <KStandardAction>
@@ -365,6 +366,9 @@ void DolphinMainWindow::changeUrl(const QUrl &url)
updateViewActions();
updateGoActions();
+ // will signal used urls to activities manager, too
+ m_recentFiles->addUrl(url);
+
Q_EMIT urlChanged(url);
}
@@ -2157,6 +2161,8 @@ void DolphinMainWindow::setupActions()
connect(openInSplitViewAction, &QAction::triggered, this, [this]() {
openInSplitView(QUrl());
});
+
+ m_recentFiles = new KRecentFilesAction(this);
}
void DolphinMainWindow::setupDockWidgets()