From f5f7d0a9f769a051f4216c497441564ab83daa16 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 23 Dec 2004 13:28:00 +0000 Subject: [PATCH] if no line selected : don't join or register --- plugins/gtkgui/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/gtkgui/config.py b/plugins/gtkgui/config.py index 2db53b2ed..d68148bbd 100644 --- a/plugins/gtkgui/config.py +++ b/plugins/gtkgui/config.py @@ -1013,6 +1013,8 @@ class browseAgent_Window: """When we want to join a conference : Ask specific informations about the selected agent and close the window""" model, iter = self.treeview.get_selection().get_selected() + if not iter: + return service = model.get_value(iter, 1) room = '' if string.find(service, '@') > -1: @@ -1026,6 +1028,8 @@ class browseAgent_Window: """When we want to register an agent : Ask specific informations about the selected agent and close the window""" model, iter = self.treeview.get_selection().get_selected() + if not iter : + return service = model.get_value(iter, 1) self.plugin.send('REG_AGENT_INFO', self.account, service) widget.get_toplevel().destroy()