summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-05-15 17:03:07 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-05-15 17:03:07 +0200
commit3a0cf4b4dbfff5992776d0b0551f445b9b42bce9 (patch)
treefd31f637791a760e00265d6d5f77cdae97f0d607
parent9c084841072b7c1fe06ea402c2c2e0c41e9fc04a (diff)
downloadweechat-3a0cf4b4dbfff5992776d0b0551f445b9b42bce9.zip
api: fix bug with function config_set_desc_plugin (use immediately description for option when function is called)
-rw-r--r--ChangeLog3
-rw-r--r--src/plugins/plugin-config.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0deb80f08..a6b9bf650 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,9 @@ v0.3.6-dev, 2011-05-15
Version 0.3.6 (under dev!)
--------------------------
+* api: fix bug with function config_set_desc_plugin (use immediately
+ description for option when function is called)
+
Version 0.3.5 (2011-05-15)
--------------------------
diff --git a/src/plugins/plugin-config.c b/src/plugins/plugin-config.c
index 4a4f5f720..6306c35f3 100644
--- a/src/plugins/plugin-config.c
+++ b/src/plugins/plugin-config.c
@@ -184,6 +184,8 @@ plugin_config_set_desc_internal (const char *option, const char *value)
option, "string", _("description of plugin option"),
NULL, 0, 0, "", value, 0, NULL, NULL,
&plugin_config_desc_changed_cb, NULL, NULL, NULL);
+ if (ptr_option)
+ plugin_config_desc_changed_cb (NULL, ptr_option);
}
}