From f72fc7f2abd323b071f0a61372d3daca11b8565c Mon Sep 17 00:00:00 2001 From: Stephan Erb Date: Mon, 17 Nov 2008 21:13:12 +0000 Subject: [PATCH] Prevent possible traceback when selecting a row while ServiceBrowser is still loading. --- src/disco.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/disco.py b/src/disco.py index b7aae4e20..12d999905 100644 --- a/src/disco.py +++ b/src/disco.py @@ -725,10 +725,12 @@ _('This type of service does not contain any items to browse.')) self.travel(jid, '') def on_services_treeview_row_activated(self, widget, path, col = 0): - self.browser.default_action() + if self.browser: + self.browser.default_action() def on_services_treeview_selection_changed(self, widget): - self.browser.update_actions() + if self.browser: + self.browser.update_actions() class AgentBrowser: