]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Open KFind with current dir
authorNicolas Fella <nicolas.fella@gmx.de>
Sun, 3 Mar 2024 22:25:09 +0000 (23:25 +0100)
committerNicolas Fella <nicolas.fella@gmx.de>
Sun, 3 Mar 2024 22:25:09 +0000 (23:25 +0100)
Amends 2cd3d58eec5695899c26ca66a631fb79867b6584

BUG: 482343

src/dolphinmainwindow.cpp

index f90ff0c7382b4cf006c8903f6ee120bd10cb99c1..03486a9cf69de0c570a0c2fc53483976d869ef55 100644 (file)
@@ -1208,8 +1208,9 @@ QPointer<QAction> 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();
     });