Changeset View
Changeset View
Standalone View
Standalone View
src/dolphinmainwindow.cpp
| Show First 20 Lines • Show All 950 Lines • ▼ Show 20 Line(s) | 944 | { | |||
|---|---|---|---|---|---|
| 951 | } | 951 | } | ||
| 952 | return QDir::homePath(); | 952 | return QDir::homePath(); | ||
| 953 | } | 953 | } | ||
| 954 | 954 | | |||
| 955 | QPointer<QAction> DolphinMainWindow::preferredSearchTool() | 955 | QPointer<QAction> DolphinMainWindow::preferredSearchTool() | ||
| 956 | { | 956 | { | ||
| 957 | m_searchTools.clear(); | 957 | m_searchTools.clear(); | ||
| 958 | KMoreToolsMenuFactory("dolphin/search-tools").fillMenuFromGroupingNames( | 958 | KMoreToolsMenuFactory("dolphin/search-tools").fillMenuFromGroupingNames( | ||
| 959 | &m_searchTools, { "files-find" }, QUrl::fromLocalFile(activeContainerLocalPath()) | 959 | &m_searchTools, { "files-find" }, m_activeViewContainer->url() | ||
| 960 | ); | 960 | ); | ||
| 961 | QList<QAction*> actions = m_searchTools.actions(); | 961 | QList<QAction*> actions = m_searchTools.actions(); | ||
| 962 | if (actions.isEmpty()) { | 962 | if (actions.isEmpty()) { | ||
| 963 | return nullptr; | 963 | return nullptr; | ||
| 964 | } | 964 | } | ||
| 965 | QAction* action = actions.first(); | 965 | QAction* action = actions.first(); | ||
| 966 | if (action->isSeparator()) { | 966 | if (action->isSeparator()) { | ||
| 967 | return nullptr; | 967 | return nullptr; | ||
| ▲ Show 20 Lines • Show All 1391 Lines • Show Last 20 Lines | |||||