Prevent possible traceback when selecting a row while ServiceBrowser is still loading.

This commit is contained in:
Stephan Erb 2008-11-17 21:13:12 +00:00
parent f6697682c1
commit f72fc7f2ab
1 changed files with 4 additions and 2 deletions

View File

@ -725,9 +725,11 @@ _('This type of service does not contain any items to browse.'))
self.travel(jid, '') self.travel(jid, '')
def on_services_treeview_row_activated(self, widget, path, col = 0): def on_services_treeview_row_activated(self, widget, path, col = 0):
if self.browser:
self.browser.default_action() self.browser.default_action()
def on_services_treeview_selection_changed(self, widget): def on_services_treeview_selection_changed(self, widget):
if self.browser:
self.browser.update_actions() self.browser.update_actions()