Skip to content
Snippets Groups Projects
Commit 39cf330c authored by Dicson's avatar Dicson
Browse files

plugin_installer. better way to prevent traceback.

parent e4e59353
No related branches found
No related tags found
No related merge requests found
...@@ -376,12 +376,11 @@ class PluginInstaller(GajimPlugin): ...@@ -376,12 +376,11 @@ class PluginInstaller(GajimPlugin):
return plugins_found return plugins_found
def select_root_iter(self): def select_root_iter(self):
try: if hasattr(self, 'page_num'):
selection = self.available_treeview.get_selection() selection = self.available_treeview.get_selection()
if selection.count_selected_rows() == 0: if selection.count_selected_rows() == 0:
selection.select_iter(self.available_plugins_model.get_iter_root()) root_iter = self.available_plugins_model.get_iter_root()
except Exception, error: selection.select_iter(root_iter)
pass
class Ftp(threading.Thread): class Ftp(threading.Thread):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment