summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexandru Pandelea <alexandru.pandelea@gmail.com>2017-08-02 10:54:25 +0100
committerAlexandru Pandelea <alexandru.pandelea@gmail.com>2017-08-15 21:42:15 +0100
commit37693c427941d60634bad80dd7c2d0b3a8523cea (patch)
tree6c4e5401c3b6e8bd0214f00a78d8520dbbb8be5e /test
parentafa26e43a716e70160412ce11c1c8dddfd44b6cc (diff)
downloadnautilus-37693c427941d60634bad80dd7c2d0b3a8523cea.tar.gz
search-engine: fix search providers handling
When starting the search providers, some provider might finish before all providers are started, so a wrong value of providers_running will be used, making Nautilus crash. To fix this, keep a queue of the started providers and whenever the value of the finised/running providers is needed, check the status of each provider. https://bugzilla.gnome.org/show_bug.cgi?id=785723
Diffstat (limited to 'test')
-rw-r--r--test/test-nautilus-search-engine.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test-nautilus-search-engine.c b/test/test-nautilus-search-engine.c
index 2ed8af77e..fa30f352f 100644
--- a/test/test-nautilus-search-engine.c
+++ b/test/test-nautilus-search-engine.c
@@ -28,7 +28,6 @@ main (int argc,
char *argv[])
{
NautilusSearchEngine *engine;
- NautilusSearchEngineModel *model;
NautilusDirectory *directory;
NautilusQuery *query;
GFile *location;
@@ -52,8 +51,7 @@ main (int argc,
directory = nautilus_directory_get (location);
g_object_unref (location);
- model = nautilus_search_engine_get_model_provider (engine);
- nautilus_search_engine_model_set_model (model, directory);
+ nautilus_search_engine_set_model (engine, directory);
g_object_unref (directory);
nautilus_search_provider_start (NAUTILUS_SEARCH_PROVIDER (engine));