From 587763d394f9ec9784c40969a1e1876f909bfd28 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Tue, 30 May 2006 08:47:44 +0000 Subject: [PATCH] Other code places should allow menu paths to be None too. 2006-05-30 Manish Singh * plug-ins/pygimp/gimpfu.py: Other code places should allow menu paths to be None too. --- ChangeLog | 5 +++++ plug-ins/pygimp/gimpfu.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d9b3b6ab1d..01648732d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-05-30 Manish Singh + + * plug-ins/pygimp/gimpfu.py: Other code places should allow + menu paths to be None too. + 2006-05-30 Manish Singh * plug-ins/pygimp/gimpfu.py: Allow menu paths to be None. diff --git a/plug-ins/pygimp/gimpfu.py b/plug-ins/pygimp/gimpfu.py index 3de42a5139..9167c4b5b2 100644 --- a/plug-ins/pygimp/gimpfu.py +++ b/plug-ins/pygimp/gimpfu.py @@ -447,7 +447,7 @@ def _interact(func_name, start_params): if on_run: on_run() - need_progress = menupath[:8] != '/' + need_progress = menupath and menupath[:8] != '/' tooltips = gtk.Tooltips() @@ -601,7 +601,7 @@ def _run(func_name, params): menupath = _registered_plugins_[func_name][5] func = _registered_plugins_[func_name][10] - if plugin_type == PLUGIN and menupath[:10] != '/': + if plugin_type == PLUGIN and menupath and menupath[:10] != '/': if menupath[:7] == '/': end = 5 else: