if no line selected : don't join or register
This commit is contained in:
parent
a792979790
commit
f5f7d0a9f7
1 changed files with 4 additions and 0 deletions
|
@ -1013,6 +1013,8 @@ class browseAgent_Window:
|
||||||
"""When we want to join a conference :
|
"""When we want to join a conference :
|
||||||
Ask specific informations about the selected agent and close the window"""
|
Ask specific informations about the selected agent and close the window"""
|
||||||
model, iter = self.treeview.get_selection().get_selected()
|
model, iter = self.treeview.get_selection().get_selected()
|
||||||
|
if not iter:
|
||||||
|
return
|
||||||
service = model.get_value(iter, 1)
|
service = model.get_value(iter, 1)
|
||||||
room = ''
|
room = ''
|
||||||
if string.find(service, '@') > -1:
|
if string.find(service, '@') > -1:
|
||||||
|
@ -1026,6 +1028,8 @@ class browseAgent_Window:
|
||||||
"""When we want to register an agent :
|
"""When we want to register an agent :
|
||||||
Ask specific informations about the selected agent and close the window"""
|
Ask specific informations about the selected agent and close the window"""
|
||||||
model, iter = self.treeview.get_selection().get_selected()
|
model, iter = self.treeview.get_selection().get_selected()
|
||||||
|
if not iter :
|
||||||
|
return
|
||||||
service = model.get_value(iter, 1)
|
service = model.get_value(iter, 1)
|
||||||
self.plugin.send('REG_AGENT_INFO', self.account, service)
|
self.plugin.send('REG_AGENT_INFO', self.account, service)
|
||||||
widget.get_toplevel().destroy()
|
widget.get_toplevel().destroy()
|
||||||
|
|
Loading…
Add table
Reference in a new issue