plugin_installer. better way to prevent traceback.
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user