From 37764c01af37f7877df287754442fcb67b8871b5 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 2 Mar 2005 16:11:54 +0000 Subject: [PATCH] bugfix in the agent browser --- plugins/gtkgui/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/gtkgui/config.py b/plugins/gtkgui/config.py index c8c5dbcec..db2d91c14 100644 --- a/plugins/gtkgui/config.py +++ b/plugins/gtkgui/config.py @@ -1228,7 +1228,8 @@ class agent_browser_window: else: if not model.iter_next(iter): iter = model.iter_parent(iter) - iter = model.iter_next(iter) + if iter: + iter = model.iter_next(iter) if not iter: iter = model.append(None, (agent, agent)) self.agent_infos[agent] = {'features' : []}