diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -27,6 +27,7 @@ Qt5::DBus Qt5::Gui Qt5::Widgets + KF5::Activities KF5::Crash KF5::I18n KF5::KIOCore diff --git a/host/downloadjob.cpp b/host/downloadjob.cpp --- a/host/downloadjob.cpp +++ b/host/downloadjob.cpp @@ -25,8 +25,10 @@ #include "settings.h" #include +#include #include +#include #include #include @@ -240,6 +242,11 @@ // Write origin url into extended file attributes saveOriginUrl(); + // Add as recent document + if (!m_incognito) { + KActivities::ResourceInstance::notifyAccessed(QUrl::fromLocalFile(m_fileName), qApp->desktopFileName()); + } + emitResult(); return; }