X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/5d6bdce2d6acc6f8b0f8c7e58ea499e49f2f9c70..5d96999a51690934c79316f9abdeebef0c098edb:/src/dolphinmainwindow.cpp diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 7bff58080..03486a9cf 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(); }); @@ -2572,6 +2573,7 @@ void DolphinMainWindow::updateSplitActions() popoutSplitAction->setEnabled(false); if (m_splitViewAction->menu()) { m_splitViewAction->removeAction(popoutSplitAction); + m_splitViewAction->menu()->deleteLater(); m_splitViewAction->setMenu(nullptr); setActionPopupMode(m_splitViewAction, QToolButton::DelayedPopup); }