prevent tracebacks

This commit is contained in:
Denis Fomin
2013-04-30 16:23:09 +04:00
parent 7e3ff2af85
commit 1c97bf1e66
2 changed files with 11 additions and 14 deletions

View File

@@ -450,7 +450,9 @@ class PluginInstaller(GajimPlugin):
root_iter = self.available_plugins_model.get_iter_first()
selection.select_iter(root_iter)
scr_win = self.xml.get_object('scrolledwindow2')
scr_win.get_vadjustment().set_value(0)
vadjustment = scr_win.get_vadjustment()
if vadjustment:
vadjustment.set_value(0)
class Ftp(threading.Thread):