[anjuta] plugin-manager: Fix dependents checking on wrong object in should_unload().
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] plugin-manager: Fix dependents checking on wrong object in should_unload().
- Date: Mon, 26 Nov 2012 21:48:10 +0000 (UTC)
commit 926a39ca5937c23197da91cd4037aa67aa613a4c
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Sun Nov 25 20:46:12 2012 +0100
plugin-manager: Fix dependents checking on wrong object in should_unload().
The function should check if the plugin is one of the dependents of the plugin that is to be
unloaded and not if the plugin is dependent on itself.
https://bugzilla.gnome.org/show_bug.cgi?id=689054
libanjuta/anjuta-plugin-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libanjuta/anjuta-plugin-manager.c b/libanjuta/anjuta-plugin-manager.c
index a163d56..8e26ea8 100644
--- a/libanjuta/anjuta-plugin-manager.c
+++ b/libanjuta/anjuta-plugin-manager.c
@@ -632,7 +632,7 @@ should_unload (GHashTable *activated_plugins, AnjutaPluginHandle *plugin_to_unlo
return TRUE;
gboolean dependent =
- GPOINTER_TO_INT (g_hash_table_lookup (anjuta_plugin_handle_get_dependents (plugin),
+ GPOINTER_TO_INT (g_hash_table_lookup (anjuta_plugin_handle_get_dependents (plugin_to_unload),
plugin));
return dependent;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]