aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/help/searchtaskhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/help/searchtaskhandler.cpp')
-rw-r--r--src/plugins/help/searchtaskhandler.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/help/searchtaskhandler.cpp b/src/plugins/help/searchtaskhandler.cpp
index 2971d7bff4..8df2a71565 100644
--- a/src/plugins/help/searchtaskhandler.cpp
+++ b/src/plugins/help/searchtaskhandler.cpp
@@ -36,15 +36,12 @@ using namespace Help::Internal;
bool SearchTaskHandler::canHandle(const ProjectExplorer::Task &task) const
{
- return !task.description.isEmpty()
- && !task.description.startsWith(QLatin1Char('\n'));
+ return !task.summary.isEmpty();
}
void SearchTaskHandler::handle(const ProjectExplorer::Task &task)
{
- const int eol = task.description.indexOf(QLatin1Char('\n'));
- const QUrl url(QLatin1String("https://www.google.com/search?q=") + task.description.left(eol));
- emit search(url);
+ emit search(QUrl("https://www.google.com/search?q=" + task.summary));
}
QAction *SearchTaskHandler::createAction(QObject *parent) const