diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index f90ff0c738..03486a9cf6 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1208,8 +1208,9 @@ QPointer DolphinMainWindow::preferredSearchTool() auto *action = new QAction(QIcon::fromTheme(kfind->icon()), kfind->name(), this); - connect(action, &QAction::triggered, this, [kfind] { + connect(action, &QAction::triggered, this, [this, kfind] { auto *job = new KIO::ApplicationLauncherJob(kfind); + job->setUrls({m_activeViewContainer->url()}); job->start(); });