diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | libgdict/gdict-source-loader.c | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2007-09-06 Emmanuele Bassi <ebassi@gnome.org> + + * libgdict/gdict-source-loader.c: + (gdict_source_loader_has_source): Reload the sources if the + loader has the dirty bit set. + 2007-09-04 Emmanuele Bassi <ebassi@gnome.org> * src/gdict-window.c: Make sure that the word to match is not diff --git a/libgdict/gdict-source-loader.c b/libgdict/gdict-source-loader.c index 1b49184..75f63a5 100644 --- a/libgdict/gdict-source-loader.c +++ b/libgdict/gdict-source-loader.c @@ -593,5 +593,8 @@ gdict_source_loader_has_source (GdictSourceLoader *loader, g_return_val_if_fail (GDICT_IS_SOURCE_LOADER (loader), FALSE); g_return_val_if_fail (source_name != NULL, FALSE); + if (loader->priv->paths_dirty) + gdict_source_loader_update_sources (loader); + return (g_hash_table_lookup (loader->priv->sources_by_name, source_name) != NULL); } |