Commit 6edb22b9 authored by Christian Hergert's avatar Christian Hergert
Browse files

code-index: fix access to task pointer

This also fixes file-search from the global search as the task completes
allowing the popover to display.
parent 04ce66b2
......@@ -75,6 +75,9 @@ ide_code_index_search_provider_search_async (IdeSearchProvider *provider,
context = ide_object_get_context (IDE_OBJECT (self));
g_assert (IDE_IS_CONTEXT (context));
task = ide_task_new (self, cancellable, callback, user_data);
ide_task_set_source_tag (task, ide_code_index_search_provider_search_async);
if (!ide_context_has_project (context) ||
!(addin = gbp_code_index_workbench_addin_from_context (context)))
{
......@@ -87,10 +90,6 @@ ide_code_index_search_provider_search_async (IdeSearchProvider *provider,
index = gbp_code_index_workbench_addin_get_index (addin);
task = ide_task_new (self, cancellable, callback, user_data);
ide_task_set_source_tag (task, ide_code_index_search_provider_search_async);
ide_task_set_priority (task, G_PRIORITY_LOW);
if (index == NULL)
ide_task_return_new_error (task,
G_IO_ERROR,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment